Page 2 of 2

Re: Once again: ONDOWNLOAD is ignored

Posted: Tue Mar 30, 2010 12:54 pm
by mguttman
Oh yes! It is my Windows "My Documents" and all the spaces were duly replaced with '<SP>'!

I even tried to use '/' (a forward slash) as a folder separator in lieu of '\', and even '\\', and it is always the same, default dir and file names.

Re: Once again: ONDOWNLOAD is ignored

Posted: Tue Mar 30, 2010 1:15 pm
by Daniel, Tech Support
Meir, are you actually running this macro directly or from a Perl script? If it is the later, then have you tried running it directly? Sorry for asking so many questions, but I just don't see why its working here and not on your end.

Re: Once again: ONDOWNLOAD is ignored

Posted: Tue Mar 30, 2010 1:29 pm
by mguttman
Yes Daniel, I am running it directly from Firefox. I always do that first, before ever trying to do it from PERL.

And Daniel, please ask as many questions as you might think off. As a great mentor of mine said: "There are no stupid questions, just stupid answers...!" :wink:

Re: Once again: ONDOWNLOAD is ignored

Posted: Thu Apr 01, 2010 8:59 pm
by Daniel, Tech Support
Hi Meir,

Could you try using CONTENT=EVENT:SAVETARGETAS for now and we will try to deal with the ONDOWNLOAD bug meanwhile.

Tell me, if it worked/didn't work! :)

Hag Pesach Sameach! :)

Re: Once again: ONDOWNLOAD is ignored

Posted: Fri Apr 02, 2010 6:33 am
by mguttman
Hag Pesach Sameach to you too!

Don't worry! As I posted here before, as far as my application is concerned, it is solved: I use Perl to analyze, move and rename the downloaded files from their default download folder to their intended place. No problem. I hope this presents you with an opportunity to overcome another hurdle.

Please keep me posted though!

Re: Once again: ONDOWNLOAD is ignored

Posted: Tue Apr 06, 2010 1:33 pm
by Daniel, Tech Support
Hi Meir, thanks a lot! OK, I will let you know as soon as this is fixed!

Re: Once again: ONDOWNLOAD is ignored

Posted: Thu Jul 22, 2010 11:52 am
by Daniel, Tech Support
Hi,

I am afraid I forgot to update this thread: the problem was that the macro should still be running when the download dialog appears, otherwise iMacros can not catch it. Often websites need a few seconds for the download to start, so one must make sure the macro is still active then, e. g. by adding a short wait statement at the end. This wait time is not for the download itself, but only for the time the site needs for the download dialog to appear. If the macro continues with other commands, you will not need such a WAIT statement, you need it only when the download is at the end of the macro.

We updated the wiki article here:
http://wiki.imacros.net/ONDOWNLOAD

This is the reason why it did work when there was a URL GOTO=http://www.google.com at the end :)) Sorry for the confusion!

Best regards,

Re: Once again: ONDOWNLOAD is ignored

Posted: Thu Jul 22, 2010 12:24 pm
by mguttman
Thanks Daniel!

I'll write up a test script shortly!

Re: Once again: ONDOWNLOAD is ignored

Posted: Thu Jul 22, 2010 12:43 pm
by Daniel, Tech Support
Not at all!! Sorry for forgetting to update this post!