Adobe photoshop cs 2.0 ユーザーガイド

ページ / 91
Photoshop CS2
Adobe Photoshop CS2  Scripting Guide
 Scripting Photoshop CS2     45
Note:
It is important to note that the 
Open
 and 
Save
 formats are not identical. See 
 for comparison.
Note:
The following optional formats are available only when installed explicitly:
Alias PIX
Electric Image
SGI RGB
Wavefront RLA
SoftImage
The following scripts save a document as a 
.jpeg
 file.
AS
tell application "Adobe Photoshop CS2"
make new document
set myOptions to {class:JPEG save options, ¬
embed color profile:false, format options: standard, ¬
matte: background color matte,}
save current document in file myFile as JPEG with options ¬
myOptions appending no extension without copying
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()
Save Classes
Save
Options
Photoshop
BMP
GIF
EPS
JPEG
PDF
Pict
File
Pict
Resource
Pixar
PNG
TIFF
Raw
DSC1
DSC2
SGI
RGB
Targa