Adobe 26001360 Scripting Guide - Page 271
open, Table 4.139, open - Parameters
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 271 highlights
Adobe Illustrator CS Scripting Guide 271 open Opens one or more specified documents. Table 4.139 open - Parameters Parameters What it is Objects supported anything [forcing RGB/ CMYK] with options anything The file to be opened Opens the document(s) using the specified color space, converting if necessary. Does not work on Illustrator CS files, only preIllustrator 9. any file Illustrator can open Options for opening a particular type of file Returns nothing Notes If the forcing parameter is omitted and you attempt to open a pre-Illustrator 9 document that contains both RGB and CMYK colors, Illustrator will display a dialog to the user. When the forcing parameter is supplied and Illustrator encounters documents containing both color spaces, the document will be opened without a dialog and all colors will be converted to the specified color space. Example 99.1 -- This script opens a PDF document -- selected by the user and forcing the use of the RGB color space set fileToOpen to choose file with prompt "Select CMYK file to open as RGB" tell application "Illustrator CS" open fileToOpen forcing RGB end tell 12 Aug 03