Command Line - Open the JSON file Directly

Hi

Just curious if I can reference a macro via the JSON stored on the hard drive rather than by the macro name. So the URL I’m passing to Firefox via the command line could look something like this…

file:///\Mac\ui.vision.html?direct=1&closeBrowser=1&closeRPA=1&storage=xfile&macro=“file://///Mac/PathToMacroJSON/uivision/macros/macroname.JSON”

I’ve tried several formats but none work - I’m ether being told the filepath needs to be relative to the uivision folder or no macro found.

Thanks
Pat

Actually, you must use the file name in “hard drive mode” :wink:

But the path is not absolute, instead it is relative to the macros root folder. The root folder is specified in the XModule settings page.

So instead of

macro=“file://///Mac/PathToMacroJSON/uivision/macros/macroname.JSON”

this should work

macro="macroname.JSON”

assuming

Mac/PathToMacroJSON/uivision/ is your root folder.

See also here: Error Can't find macro with name "name" when run command line

Thanks - that did it… :+1: