The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
SAVEAS
Saves information to a file. The SAVEAS command can save different information to a file. You can add parts to the original file name by using the + syntax (see Examples). The built-in variable !NOW is helpful in this context.
Syntax
SAVEAS TYPE=(CPL|MHT|HTM|TXT|EXTRACT|BMP) FOLDER=folder_name FILE=file_name
Parameters
- TYPE
- Specifies the type of the save information. The following options are available:
- CPL
- The complete web page is saved. The files and images are saved separately and stored in a folder.
- MHT
- The web page plus images are saved in a single file (Web Archive).
- HTM
- The web page source is saved with no images. If the page has frames, all framed HTML pages are saved automatically.
- TXT
- Only the web page text is saved; all HTML tags are omitted.
- EXTRACT
- The value of the variable !EXTRACT is saved in CSV format.
- BMP
- A screenshot of the web page is saved. If used in the iMacros Browser the complete website (including the invisible part below the fold) is saved. If used inside Internet Explorer only the visible part of the website is saved.
- FOLDER
- Specifies the folder in which the file is saved. Use * for the standard download folder specified in the Paths tab of the Options dialog, e.g. C:\Program Files\iMacros\downloads\.
- FILE
Specifies the file name under which the file is saved. If no file extension is given then the default file extension is used. If you use FILE=*, the default file name extract.csv is used. Use +something to add something to the original file name before the file extension.
Examples
Save the current webpage in a file called homepage_current.mht
SAVEAS TYPE=MHT FOLDER=* FILE=homepage_current
Save a screenshot of the current page with the current date in the original filename
SAVEAS TYPE=BMP FOLDER=C:\Screenshots FILE=+{{!NOW:ddmmyyyy}}