If ONDOWNLOAD does not use given FOLDER or FILE

Information related to the use of iMacros for Web Scraping, Data Mining and creating Mashups.

Moderator: iMacros Moderators

If ONDOWNLOAD does not use given FOLDER or FILE

by Hannes, Tech Support on Wed Feb 27, 2008 2:06 am

Especially when running subsequent macros via the scripting interface, you may find that ONDOWNLOAD seems to ignore its FOLDER or FILE parameters given in e.g.
Code: Select all
ONDOWNLOAD FOLDER=c:\myDir FILE=myfile


The reason often is that the download-dialog does not prevent the macro/script from continuing. So it can happen that

    1) The macro stops before the download is initiated (e.g. if the website needs some time to start transferring the file)

    2) A second macro is started before the download is initiated, which resets FOLDER and FILE to the default values

In both cases, adding a simple WAIT statement right after the command that initiates the download (e.g. a TAG command) will keep the macro from continuing/stopping before the download is handled correctly.
Hannes, iOpus Support
Hannes, Tech Support
 
Posts: 2120
Joined: Thu Sep 21, 2006 6:27 am

Re: If ONDOWNLOAD does not use given FOLDER or FILE

by doug on Wed Dec 10, 2008 7:52 am

I tryied two different approaches and both failed. What can be happened? It used to work fine in the previous edition

ONDOWNLOAD FOLDER=c:\myDir FILE=myfile WAIT=YES

ONDOWNLOAD FOLDER=c:\myDir FILE=myfile
WAIT SECONDS = 20
doug
 
Posts: 1
Joined: Wed Dec 10, 2008 7:48 am

Re: If ONDOWNLOAD does not use given FOLDER or FILE

by Hannes, Tech Support on Wed Dec 10, 2008 8:12 am

Can you post a test macro that shows this behaviour?
Hannes, iOpus Support
Hannes, Tech Support
 
Posts: 2120
Joined: Thu Sep 21, 2006 6:27 am


Return to How-To's and Examples for Web Scraping

Who is online

Users browsing this forum: No registered users and 1 guest

-->