Opening A Document - Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
docRef.ActiveChannels = theChannels
Alternatively, select all component channels using the
object:
appRef.ActiveDocument.ActiveChannels= _
appRef.ActiveDocument.ComponentChannels
JS
Set the active channels to the first and third channel using a channel array:
theChannels = new Array(docRef.channels[0], docRef.channels[2])
docRef.activeChannels = theChannels
Alternatively, select all component channels by using the
object:
app.activeDocument.activeChannels =
activeDocument.componentChannels

Opening a Document

You use the
document. You must specify the document name (that is, the path to the file that contains the document)
with the command/method.
Specifying File Formats to Open
Open Classes
Because Photoshop CS2 supports many different file formats, the
specify the format of the document you are opening. If you do not specify the format, Photoshop CS2 will
infer the type of file for you. The following examples open a document using its default type:
AS
set theFile to alias "Applications:Documents:MyFile"
open theFile
or
set theFile to a reference to "Applications:Documents:MyFile"
open theFile
VBS
fileName = "C:\MyFile"
Set docRef = appRef.Open(fileName)
/
/
command/method of the
open
Open
open()
Photo CD
Photoshop CS2
ComponentChannels
componentChannels
Application
Open
Options
Camera
Raw
Raw
Scripting Photoshop CS2
property of the
property of the
object to open an existing
Generic
Generic
EPS
PDF
open/Open/open()
42
Document
Document
command lets you

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs2

Table of Contents