C
3: Scripting Photoshop
HAPTER
Saving a Document
Options for saving documents in Photoshop are illustrated below. To find out which properties you can
specify for a specific file format save option, look up the object that begins with the file format name. For
example, to find out about properties for saving an
➤
In the Adobe Photoshop CS5 AppleScript Scripting Reference, look up the class
➤
In the Adobe Photoshop CS5 Visual Basic Scripting Reference or in the Adobe Photoshop CS5 JavaScript
Scripting Reference look up
Save Classes
Photoshop
Pixar
N
: It is important to note that the
OTE
to open" on page 29
N
: The following optional formats are available only when installed explicitly:
OTE
➤
Alias PIX
➤
Electric Image
➤
SGI RGB
➤
Wavefront RLA
➤
SoftImage
The following scripts save a document as a
AS
tell application "Adobe Photoshop CS5"
make new document
set myFile to "OS X 10.5.8 US:Users:psauto:Desktop:Rat.jpg"
set myOptions to ¬
{class:JPEG save options, embed color profile:false, ¬
save current document in file myFile as JPEG with options ¬
myOptions appending no extension without copying
end tell
EPSSaveOptions
BMP
GIF
PNG
TIFF
for comparison.
format options:standard, matte:background color matte}
file, do the following:
.eps
.
Save
Options
JPEG
EPS
Raw
DSC1
and
formats are not identical. See
Open
Save
file.
.jpeg
Saving a Document 31
EPS save options
Pict File
PDF
SGI
DSC2
RGB
"Specifying file formats
.
Pict
Resource
Targa