If ONDOWNLOAD does not use given FOLDER or FILE

Information related to the use of iMacros for Web Scraping, Data Mining and creating Mashups.
Post Reply
Hannes, Tech Support

If ONDOWNLOAD does not use given FOLDER or FILE

Post by Hannes, Tech Support » Wed Feb 27, 2008 9: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.
doug
Posts: 1
Joined: Wed Dec 10, 2008 2:48 pm

Re: If ONDOWNLOAD does not use given FOLDER or FILE

Post by doug » Wed Dec 10, 2008 2:52 pm

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
Hannes, Tech Support

Re: If ONDOWNLOAD does not use given FOLDER or FILE

Post by Hannes, Tech Support » Wed Dec 10, 2008 3:12 pm

Can you post a test macro that shows this behaviour?
Post Reply