<< Back to demos

"Save Target As" Test Page

Open PDF Document - Sample PDF document for testing. When you install an Acrobat PDF product on a system that includes a browser, you automatically configure the browser to open PDF files within the browser window. If no Acrobat PDF Plug-In is installed, the link open as normal download.

Play Video - Plays a short sample movie. By default, this type of files (MPEG, MPE, ASF, AVI, ...) are opened in the Windows Media Player instead of download. The "Save Target As" feature can be used to automate the download.

Some file types, like PDF or AVI are typically displayed inside a browser or a third-party application when you click on them. The reason for this is that on most Windows computer systems so called "viewers" are installed for these file types. If such an this Plug-In is installed, Internet Explorer attempts to display any document of the specific file type inside the browser instead of downloading it. You would manually download these documents by right-clicking on the document link and selecting the "Save Target As" command. iMacros can automate these "Save Target As" downloads for you:
  1. Click on the link normally. A TAG command is recorded, for example TAG POS=1 TYPE=A ATTR=TXT:OpenPDFDocument
  2. After the recording is complete, open the macro and edit this TAG line to: TAG POS=1 TYPE=A ATTR=TXT:OpenPDFDocument CONTENT=EVENT:SAVETARGETAS The "EVENT:SAVETARGETAS" part tells IM, that instead of a normal mouse click, IM simulates now the "Save Target As" command of Internet Explorer.
  3. If you want to use your on path and file names, add an ONDOWNLOAD command to the macro: ONDOWNLOAD FOLDER=c:\pdf-documents FILE=+_timetag_{{!NOW:yyyymmdd_hhnnss}} TAG POS=1 TYPE=A ATTR=TXT:OpenPDFDocument CONTENT=EVENT:SAVETARGETAS