SAVEAS does not work from js

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
User avatar
bobis
Posts: 364
Joined: Sat Sep 11, 2010 3:34 pm
Contact:

SAVEAS does not work from js

Post by bobis » Thu Aug 16, 2012 4:50 pm

HI!
I've encountered problem with firefox iMacros add-on running js with SAVEAS command - it does not save data (I need that for the log file).
Is there workaround or solution for this problem?
here is example of my code :

Code: Select all

var save;
save =  "CODE:";
save +=  "set !extract {{j}}" + "\n";
save +=  "add !extract <sp>Found!" + "\n";
save +=  "SAVEAS TYPE=EXTRACT FOLDER=C:\data\ FILE=compare.txt" + "\n";
iimPlay(save);
Get Best iMacros scripts at http://imacrosbot.com/
siniy
Posts: 118
Joined: Sat Nov 07, 2009 7:44 pm

Re: SAVEAS does not work from js

Post by siniy » Sun Aug 26, 2012 11:26 am

You have to mirror the slashes.

Code: Select all

var save;
save =  "CODE:";
save +=  "set !extract {{j}}" + "\n";
save +=  "add !extract <sp>Found!" + "\n";
save +=  "SAVEAS TYPE=EXTRACT FOLDER=C:\\data\\ FILE=compare.txt" + "\n";
iimPlay(save);
User avatar
bobis
Posts: 364
Joined: Sat Sep 11, 2010 3:34 pm
Contact:

Re: SAVEAS does not work from js

Post by bobis » Mon Aug 27, 2012 7:14 am

Perfect! Thanks!
Get Best iMacros scripts at http://imacrosbot.com/
Post Reply