Demo-SaveAs

From iMacros
Jump to: navigation, search

Save the page in different formats.

Macro Code

VERSION BUILD=10.4.28.1074
TAB T=1
SET !REPLAYSPEED MEDIUM
TAB CLOSEALLOTHERS  
TAB T=1     
URL GOTO=http://demo.imacros.net/Automate/SaveAs
WAIT SECONDS=3
URL GOTO=http://www.iopus.com/imacros/
'Save the page in all three different formats     
SAVEAS TYPE=CPL FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}  
'Chrome does not support CPL format, use MHT istead
'SAVEAS TYPE=MHT FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}  
SAVEAS TYPE=HTM FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}   
SAVEAS TYPE=TXT FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}     
'Wait a few seconds 
WAIT SECONDS=3
URL GOTO=http://demo.imacros.net/Automate/SaveAs