Adobe 23102480 Scripting Guide - Page 27
Specifying File Formats to Open, Open Classes
UPC - 883919080222
View all Adobe 23102480 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 27 highlights
Adobe Photoshop CS3 Scripting Guide Photoshop CS3 Specifying File Formats to Open Open Classes Open Options Scripting Photoshop CS3 27 Photo CD Open Options Raw Format Open Options Camera Raw Open Options EPS Open Options PDF Open Options For the document types on the following list, you can set options to specify how the document will be opened, such as the height and width of the window in which the document is opened, which page to open to in a multi-page file, etc. ● PhotoCD ● CameraRaw ● RawFormat ● Adobe PDF ● EPS To find out which options you can set for each of file type, look up the properties for the OpenOptions objects that begin with the file format name. For example: ● In the Adobe Photoshop CS3 AppleScript Scripting Reference look up the Photo CD open options class or the EPS open objects class. ● In the Adobe Photoshop CS3 Visual Basic Scripting Reference, or the Adobe Photoshop CS3 JavaScript Scripting Reference, look up the PhotoCDOpenOptions or EPSOpenOptions objects. The following examples demonstrate how to open a generic (multi-page/multi-image) PDF document with the following specifications: ● The document will open in a window that is 100 pixels high and 200 pixels wide. ● The document will open in RGB mode with a resolution of 72 pixels/inch. ● Antialiasing will be used to minimize the jagged appearance of the edges of images in the document. ● The document will open to page 3. ● The document's original shape will change to conform to the height and width properties if the original shape is not twice as wide as it is tall. AS tell application "Adobe Photoshop CS3" set myFilePath to alias "OS X 10.4.8 US:Users:psauto:Desktop:opal_screen.pdf" with timeout of 300 seconds open myFilePath as PDF with options ¬ {class:PDF open options, height:pixels 100, width:pixels 200, ¬ mode:RGB, resolution:72, use antialias:true, page:1, ¬ constrain proportions:false} end timeout end tell