Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual page 49

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
Save Classes
Photoshop
Pixar
Note:
It is important to note that the
Document' on page 42
Note:
The following optional formats are available only when installed explicitly:
The following scripts save a document as a
AS
tell application "Adobe Photoshop CS2"
make new document
set myOptions to {class:JPEG save options, ¬
save current document in file myFile as JPEG with options ¬
end tell
VBS
Dim appRef
Set jpgSaveOptions = CreateObject("Photoshop.JPEGSaveOptions")
jpgSaveOptions.EmbedColorProfile = True
jpgSaveOptions.FormatOptions = 1 'for psStandardBaseline
jpgSaveOptions.Matte = 1 'for psNoMatte
jpgSaveOptions.Quality = 1
appRef.ActiveDocument.SaveAs "c:\temp\myFile2", _
jpgSaveOptions, True, 2 'for psLowercase
JS
jpgFile = new File( "/Temp001.jpeg" )
jpgSaveOptions = new JPEGSaveOptions()
BMP
GIF
PNG
TIFF
for comparison.
Alias PIX
Electric Image
SGI RGB
Wavefront RLA
SoftImage
embed color profile:false, format options: standard, ¬
matte: background color matte,}
myOptions appending no extension without copying
Photoshop CS2
Save
Options
EPS
JPEG
Raw
DSC1
and
formats are not identical. See
Open
Save
file.
.jpeg
Scripting Photoshop CS2
Pict
PDF
File
SGI
DSC2
RGB
'Opening a
45
Pict
Resource
Targa

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs2

Table of Contents