Adobe 26001360 Scripting Guide - Page 101
Notes, Example 10.1, Table 4.17, EPS save options - Properties Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 101 highlights
Adobe Illustrator CS Scripting Guide 101 Table 4.17 EPS save options - Properties (Continued) Property R/O Value type preview Valid values: • none • BW Macintosh • color Macintosh • BW TIFF • color TIFF • transparent color TIFF What it is Specifies the format for the EPS preview image; default: color Macintosh Notes This class is used to define a record containing properties that specify options when saving a document as an EPS file. EPS save options can only be used in conjunction with the save command. It is not possible to get or create an EPS save options object. It is not necessary to specify values for all properties. Default values will be provided for any properties not specified. Example 10.1 This handler processes a folder of Illustrator files, saving each as an EPS file with level 2 PostScript and Illustrator CS compatibility. The files are save to the folder specified in the destinationFolder parameter. Note that the class property is specified in the record to ensure that Illustrator can determine the save option class. -- fileList is a list of aliases to Illustrator files -- destinationFolder is an alias to a folder where the EPS files are to be saved set sourceFolder to choose folder with prompt "Source folder?" tell application "Finder" to ¬ set fileList to every file of folder sourceFolder as alias list set destinationFolder to choose folder with prompt "Destination folder?" set destinationPath to destinationFolder as string repeat with aFile in fileList tell application "Finder" to set fileName to name of aFile set newFilePath to destinationPath & fileName & ".EPS" tell application "Illustrator CS" open aFile 12 Aug 03