Reputation: 8801
I created a javascript imacros file that runs fine in browser with firefox. But I want to run the script in command line. How can I do this?
I'm trying to do this way:
open -a Firefox "/Users/.../iMacros/Macros/test.js"
But this way the firefox page is opened and the js file is open also. But the script doesn't run.
Is there a way to run the script without firefox window open? Just on command line I mean. I'm using OS X.
Upvotes: 0
Views: 694
Reputation: 102
Example:
open -a Firefox "imacros://run/?m=test.js"
See http://wiki.imacros.net/iMacros_for_Firefox#Command_Line_Support
Upvotes: 1