VisualBasic Reference Guide.pdf
(
1332 KB
)
Pobierz
Adobe CS2 VBScript Scripting Reference
VBScript Scripting Reference
bb
c
© 2005 Adobe Systems Incorporated. All rights reserved.
Adobe® Creative Suite 2 Photoshop
®
VBScript Scripting Reference for Windows
®
and Macintosh
®
.
NOTICE: All information contained herein is the property of Adobe Systems Incorporated. No part of this publication (whether in hardcopy or
electronic form) may be reproduced or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or
otherwise, without the prior written consent of Adobe Systems Incorporated. The software described in this document is furnished under
license and may only be used or copied in accordance with the terms of such license.
This publication and the information herein is furnished AS IS, is subject to change without notice, and should not be construed as a
commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or
inaccuracies, makes no warranty of any kind (express, implied, or statutory) with respect to this publication, and expressly disclaims any and
all warranties of merchantability, fitness for particular purposes, and noninfringement of third party rights.
Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual
organization.
Adobe, the Adobe logo, Acrobat, Illustrator, and Photoshop are either registered trademarks or trademarks of Adobe Systems Incorporated in
the United States and/or other countries.
Apple, Mac, and Macintosh are trademarks of Apple Computer, Inc., registered in the United States and other countries. Microsoft, and
Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries. JavaScript and all
Java-related marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. UNIX is a
registered trademark of The Open Group.
All other trademarks are the property of their respective owners.
If this guide is distributed with software that includes an end user agreement, this guide, as well as the software described in it, is furnished
under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part
of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording,
or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note that the content in this guide is protected
under copyright law even if it is not distributed with software that includes an end user license agreement.
The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a
commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or
inaccuracies that may appear in the informational content contained in this guide.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA.
Contents
1 Introduction ................................................................................................................................. 5
Changes Since Earlier Versions.................................................................................................................................................. 5
2 VBScript Interface ........................................................................................................................ 6
Working with the Properties Tables ........................................................................................................................................ 6
Working with the Methods Tables ........................................................................................................................................... 6
ActionDescriptor ............................................................................................................................................................................ 8
ActionList......................................................................................................................................................................................... 11
ActionReference ........................................................................................................................................................................... 14
Application ..................................................................................................................................................................................... 16
ArtLayer............................................................................................................................................................................................ 22
ArtLayers.......................................................................................................................................................................................... 33
BatchOptions ................................................................................................................................................................................. 34
BitmapConversionOptions ....................................................................................................................................................... 36
BMPSaveOptions .......................................................................................................................................................................... 37
CameraRawOpenOptions ......................................................................................................................................................... 38
Channel ............................................................................................................................................................................................ 40
Channels .......................................................................................................................................................................................... 41
CMYKColor ...................................................................................................................................................................................... 47
ContactSheetOptions ................................................................................................................................................................. 48
DCS1_SaveOptions ...................................................................................................................................................................... 49
DCS2_SaveOptions ...................................................................................................................................................................... 50
Document ....................................................................................................................................................................................... 51
DocumentInfo ............................................................................................................................................................................... 58
Documents ..................................................................................................................................................................................... 61
EPSOpenOptions .......................................................................................................................................................................... 62
EPSSaveOptions............................................................................................................................................................................ 63
ExportOptionsIllustrator ............................................................................................................................................................ 64
ExportOptionsSaveForWeb ...................................................................................................................................................... 65
GalleryBannerOptions ................................................................................................................................................................ 67
GalleryCustomColorOptions .................................................................................................................................................... 68
GalleryImagesOptions ................................................................................................................................................................ 69
GalleryOptions............................................................................................................................................................................... 71
GallerySecurityOptions .............................................................................................................................................................. 73
GalleryThumbnailOptions......................................................................................................................................................... 74
GIFSaveOptions............................................................................................................................................................................. 75
GrayColor......................................................................................................................................................................................... 76
HistoryState .................................................................................................................................................................................... 77
HistoryStates .................................................................................................................................................................................. 78
HSBColor.......................................................................................................................................................................................... 79
IndexedConversionOptions ..................................................................................................................................................... 80
JPEGSaveOptions ......................................................................................................................................................................... 81
LabColor .......................................................................................................................................................................................... 82
LayerComp...................................................................................................................................................................................... 83
LayerComps.................................................................................................................................................................................... 84
Layers ................................................................................................................................................................................................ 85
3
Adobe Photoshop CS2
VBScript Scripting Reference
4
LayerSet ........................................................................................................................................................................................... 86
LayerSets ......................................................................................................................................................................................... 88
LensBlurOptions ........................................................................................................................................................................... 90
NoColor ............................................................................................................................................................................................ 91
Notifier.............................................................................................................................................................................................. 92
Notifiers............................................................................................................................................................................................ 93
PathItem .......................................................................................................................................................................................... 95
PathItems ........................................................................................................................................................................................ 99
PathPoint ...................................................................................................................................................................................... 100
PathPointInfo .............................................................................................................................................................................. 101
PathPoints .................................................................................................................................................................................... 102
PDFOpenOptions ...................................................................................................................................................................... 103
PDFSaveOptions ........................................................................................................................................................................ 104
PhotoCDOpenOptions ............................................................................................................................................................ 107
PhotoshopSaveOptions .......................................................................................................................................................... 108
PICTFileSaveOptions ................................................................................................................................................................ 109
PICTResourceSaveOptions..................................................................................................................................................... 110
PicturePackageOptions........................................................................................................................................................... 111
PixarSaveOptions ...................................................................................................................................................................... 112
PNGSaveOptions ....................................................................................................................................................................... 113
Preferences .................................................................................................................................................................................. 114
PresentationOptions ................................................................................................................................................................ 119
RawFormatOpenOptions ....................................................................................................................................................... 120
RawSaveOptions........................................................................................................................................................................ 121
RGBColor....................................................................................................................................................................................... 122
Selection ....................................................................................................................................................................................... 123
SGIRGBSaveOptions ................................................................................................................................................................. 128
SolidColor..................................................................................................................................................................................... 129
SubPathInfo................................................................................................................................................................................. 130
SubPathItem................................................................................................................................................................................ 131
SubPathItems.............................................................................................................................................................................. 132
TargaSaveOptions..................................................................................................................................................................... 133
TextFont........................................................................................................................................................................................ 134
TextFonts...................................................................................................................................................................................... 135
TextItem........................................................................................................................................................................................ 136
TiffSaveOptions.......................................................................................................................................................................... 142
XMPMetadata ............................................................................................................................................................................. 144
3 Action Manager ....................................................................................................................... 145
The ScriptListener Plug-In ...................................................................................................................................................... 145
Action Manager Scripting Objects ...................................................................................................................................... 146
Using the Action Manager from a VBS Script .................................................................................................................. 146
Running JavaScript based Action Manager code from VBScript ............................................................................. 148
4 Scripting Constants ................................................................................................................. 150
Appendix A: Event ID Codes ................................................................................................... 165
Index ......................................................................................................................................... 173
1
Introduction
This reference describes the objects and commands in the Adobe® Photoshop® CS2 VBScript dictionary. A
companion document, Photoshop CS2 Scripting Guide, describes basic scripting concepts and the
Photoshop object model. This document provides reference details of the Photoshop object model, and
additional information on VBScript-specific features.
This book contains the following sections:
●
This introduction, which describes scripting support in Adobe Photoshop CS2, and lists changes to the
VBScript interface since the previous release.
●
VBScript Interface
, which describes the objects of the VBScript type library for Adobe Photoshop CS2.
●
Scripting Constants
, which describes the enumerated values defined for use with Adobe Photoshop
CS2 VBScript properties and methods.
Changes Since Earlier Versions
The following changes have been made to the VBScript object model and language support in Adobe
Photoshop CS2:
●
The emphasis has shifted from Visual Basic to VBScript with this version of Adobe Photoshop CS2.
●
The following classes have been added to the VBScripting interface:
●
CameraRawOpenOptions
, which you use to specify options when opening a document in Camera
Raw format.
●
ExportOptionsSaveForWeb
, which you use to optimize documents for the Web.
●
ContactSheetOptions
, which you use to create and format contact sheets.
●
BatchOptions
, which you use to specify options for the Batch command.
●
LensBlurOptions
, which you use to specify options when applying the Lens Blur filter to a layer.
●
Notifier
and
Notifiers
, which you use to associate a script with an event so that the script
executes when the event occurs. For example, you can create a
Notifier
object to associate a
script with the Photoshop CS2 application opening; whenever the application opens, the script
runs.
5
Plik z chomika:
VSS33
Inne pliki z tego folderu:
JavaScript Reference Guide.pdf
(3436 KB)
VisualBasic Reference Guide.pdf
(1332 KB)
AppleScript Reference Guide.pdf
(1432 KB)
Photoshop Scripting Guide.pdf
(697 KB)
Inne foldery tego chomika:
Zgłoś jeśli
naruszono regulamin