# 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”

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.

`Mac/PathToMacroJSON/uivision/` is your root folder.