Adobe 23101764 Scripting Guide - Page 55
tell application Adobe Photoshop CS
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 55 highlights
Scripting Photoshop 3 Advanced Scripting Next, variables are declared that store document dimensions in inches and document resolution in pixels. A display resolution is declared and the text "Hello, World!" is assinged to a string variable. Finally, a document object is created, if one does not already exist. tell application "Adobe Photoshop CS" activate set theStartRulerUnits to ruler units of settings set theStartTypeUnits to type units of settings set theStartDisplayDialogs to display dialogs set ruler units of settings to inch units set type units of settings to pixel units set display dialogs to never set theDocWidthInInches to 4 set theDocHeightInInches to 2 set theDocResolution to 72 set theDocString to "Hello, World!" if (count of documents) is 0 then make new document with properties ¬ {width:theDocWidthInInches, height:theDocHeightInInches,¬ resolution:theDocResolution, name:theDocString} end if This code produces the blank document displayed below. Photoshop CS Scripting Guide 51