Run .js file from another .js file ?

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
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
Colibry
Posts: 48
Joined: Sun Sep 25, 2011 6:47 pm
Contact:

Run .js file from another .js file ?

Post by Colibry » Thu Oct 03, 2013 3:41 pm

How to start .js file from another .js file ?

I tried with bookmarking it but it didn't work. This was the error message:

Code: Select all

[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: resource://imacros/utils.js :: <TOP_LEVEL> :: line 192"  data: no], line: 188 (Error code: 991)
Tom, Tech Support
Posts: 3601
Joined: Mon May 31, 2010 4:59 pm

Re: Run .js file from another .js file ?

Post by Tom, Tech Support » Fri Oct 04, 2013 10:12 am

Hi Colibry,

See if this thread helps.
Regards,

Tom, iMacros Support
Colibry
Posts: 48
Joined: Sun Sep 25, 2011 6:47 pm
Contact:

Re: Run .js file from another .js file ?

Post by Colibry » Tue Nov 12, 2013 8:53 pm

Hi Tom,

Just to add an answer here. Bookmarking the js file, then copying the link from bookmark and putting it into iimPlay("CODE: URL GOTO=bookmarlink") helped me. So the procedure would be:

1. Right click on .js file
2. Add to bookmarks
3. Copy the bookmark link
4. Open another .js file
5. Place bookmark link in iimPlay like this

Code: Select all

iimPlay("CODE: URL GOTO=bookmarklink")
or

Code: Select all

iimPlayCode("URL GOTO=bookmarklink")
6. Run the .js file and it opens another .js file
Tom, Tech Support
Posts: 3601
Joined: Mon May 31, 2010 4:59 pm

Re: Run .js file from another .js file ?

Post by Tom, Tech Support » Wed Nov 13, 2013 9:14 am

Thanks Colibry!

What version of Firefox and what version of iMacros are you currently using?

The reason I ask is because we discovered an issue with Firefox 25 that prevents iimPlay

Code: Select all

 from running a .js macro using this approach and are currently investigating a fix.
Regards,

Tom, iMacros Support
Colibry
Posts: 48
Joined: Sun Sep 25, 2011 6:47 pm
Contact:

Re: Run .js file from another .js file ?

Post by Colibry » Wed Nov 13, 2013 8:54 pm

I used iimPlay on firefox 25 and iMacros 8.5.3.
Post Reply