Photoshop CS5 AppleScript Ref.pdf

(832 KB) Pobierz
Adobe Photoshop CS5 AppleScript Scripting Reference
ADOBE PHOTOSHOP CS5
APPLESCRIPT SCRIPTING REFERENCE
bb c
443209076.002.png
© 2010 Adobe Systems Incorporated. All rights reserved.
Adobe® Creative Suite® 5 Photoshop ® AppleScript Scripting Reference for 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 OS ® , 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 TM 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 ................................................................................................................................. 8
Changes Since Earlier Versions—CS5 Changes................................................................................................................... 8
............................................................................................................................................................................................................... 8
2 AppleScript Objects..................................................................................................................... 9
add noise ......................................................................................................................................................................................... 10
adjustment options ..................................................................................................................................................................... 11
application ...................................................................................................................................................................................... 12
art layer, art layers ........................................................................................................................................................................ 15
automatic contrast....................................................................................................................................................................... 18
automatic levels............................................................................................................................................................................ 19
average............................................................................................................................................................................................. 20
batch options................................................................................................................................................................................. 21
Bitmap mode options ................................................................................................................................................................. 23
blur..................................................................................................................................................................................................... 24
blur more ......................................................................................................................................................................................... 25
BMP save options ......................................................................................................................................................................... 26
brightness and contrast ............................................................................................................................................................. 28
Camera RAW open options....................................................................................................................................................... 29
change mode options ................................................................................................................................................................ 31
channel, channels......................................................................................................................................................................... 32
clouds ............................................................................................................................................................................................... 34
CMYK color...................................................................................................................................................................................... 35
color balance.................................................................................................................................................................................. 36
color sampler, color samplers .................................................................................................................................................. 37
color value....................................................................................................................................................................................... 38
contact sheet options ................................................................................................................................................................. 39
count item, count items............................................................................................................................................................. 41
curves................................................................................................................................................................................................ 42
custom filter ................................................................................................................................................................................... 43
deinterlace ...................................................................................................................................................................................... 44
desaturate ....................................................................................................................................................................................... 45
despeckle ........................................................................................................................................................................................ 46
DICOM open options .................................................................................................................................................................. 47
difference clouds .......................................................................................................................................................................... 48
diffuse glow .................................................................................................................................................................................... 49
displace filter.................................................................................................................................................................................. 50
document, documents ............................................................................................................................................................... 51
dust and scratches ....................................................................................................................................................................... 55
EPS open options ......................................................................................................................................................................... 56
EPS save options ........................................................................................................................................................................... 57
equalize............................................................................................................................................................................................ 59
export options ............................................................................................................................................................................... 60
filter options ................................................................................................................................................................................... 61
font, fonts ........................................................................................................................................................................................ 62
gallery banner options ............................................................................................................................................................... 63
3
443209076.003.png 443209076.004.png
Adobe Photoshop CS5
AppleScript Scripting Reference
4
gallery color options ................................................................................................................................................................... 64
gallery images options ............................................................................................................................................................... 65
gallery options............................................................................................................................................................................... 67
gallery security options .............................................................................................................................................................. 68
gallery thumbnail options......................................................................................................................................................... 69
gaussian blur .................................................................................................................................................................................. 70
GIF save options............................................................................................................................................................................ 71
glass filter ........................................................................................................................................................................................ 73
gray color......................................................................................................................................................................................... 74
high pass.......................................................................................................................................................................................... 75
history state, history states ....................................................................................................................................................... 76
HSB color ......................................................................................................................................................................................... 77
Illustrator paths export options .............................................................................................................................................. 78
indexed mode options ............................................................................................................................................................... 79
info-object....................................................................................................................................................................................... 81
inversion .......................................................................................................................................................................................... 83
JPEG save options ........................................................................................................................................................................ 84
Lab color .......................................................................................................................................................................................... 85
layer, layers ..................................................................................................................................................................................... 86
layer comp, layer comps ............................................................................................................................................................ 88
layer set, layer sets ....................................................................................................................................................................... 89
lens blur ........................................................................................................................................................................................... 92
lens flare........................................................................................................................................................................................... 94
levels adjustment ......................................................................................................................................................................... 95
maximum filter .............................................................................................................................................................................. 96
measurement scale...................................................................................................................................................................... 97
median noise.................................................................................................................................................................................. 98
minimum filter............................................................................................................................................................................... 99
mix channels ............................................................................................................................................................................... 100
motion blur.................................................................................................................................................................................. 101
no color ......................................................................................................................................................................................... 102
notifier, notifiers......................................................................................................................................................................... 103
NTSC colors.................................................................................................................................................................................. 104
ocean ripple................................................................................................................................................................................. 105
offset filter .................................................................................................................................................................................... 106
open options............................................................................................................................................................................... 107
path item, path items............................................................................................................................................................... 108
path point, path points ........................................................................................................................................................... 110
path point info............................................................................................................................................................................ 111
PDF open options...................................................................................................................................................................... 112
PDF save options ....................................................................................................................................................................... 114
Photo CD open options........................................................................................................................................................... 117
photo filter ................................................................................................................................................................................... 118
Photoshop DCS 1.0 save options......................................................................................................................................... 119
Photoshop DCS 2.0 save options......................................................................................................................................... 121
Photoshop save options ......................................................................................................................................................... 123
PICT file save options ............................................................................................................................................................... 124
PICT resource save options .................................................................................................................................................... 125
picture package options ......................................................................................................................................................... 126
pinch .............................................................................................................................................................................................. 128
Pixar save options ..................................................................................................................................................................... 129
443209076.005.png
Adobe Photoshop CS5
AppleScript Scripting Reference
5
PNG save options ...................................................................................................................................................................... 130
polar coordinates ...................................................................................................................................................................... 131
posterize ....................................................................................................................................................................................... 132
presentation options................................................................................................................................................................ 133
radial blur ..................................................................................................................................................................................... 135
raw format open options........................................................................................................................................................ 136
raw save options........................................................................................................................................................................ 137
RGB color ...................................................................................................................................................................................... 138
RGB hex color.............................................................................................................................................................................. 139
ripple .............................................................................................................................................................................................. 140
save for web export options.................................................................................................................................................. 141
save options ................................................................................................................................................................................ 143
selection-object ......................................................................................................................................................................... 144
selective color ............................................................................................................................................................................. 145
settings-object ........................................................................................................................................................................... 146
SGI RGB save options ............................................................................................................................................................... 150
sharpen ......................................................................................................................................................................................... 151
sharpen edges ............................................................................................................................................................................ 152
sharpen more.............................................................................................................................................................................. 153
shear............................................................................................................................................................................................... 154
smart blur ..................................................................................................................................................................................... 155
spherize......................................................................................................................................................................................... 156
sub path info ............................................................................................................................................................................... 157
sub path item, sub path items .............................................................................................................................................. 158
Targa save options .................................................................................................................................................................... 159
text-object.................................................................................................................................................................................... 160
texture fill ..................................................................................................................................................................................... 168
threshold adjustment .............................................................................................................................................................. 169
TIFF save options ....................................................................................................................................................................... 170
twirl................................................................................................................................................................................................. 172
unsharp mask.............................................................................................................................................................................. 173
wave filter..................................................................................................................................................................................... 174
XMP metadata ............................................................................................................................................................................ 175
zigzag............................................................................................................................................................................................. 176
3 AppleScript Commands .......................................................................................................... 177
Overview....................................................................................................................................................................................... 177
activate.......................................................................................................................................................................................... 178
adjust ............................................................................................................................................................................................. 179
apply .............................................................................................................................................................................................. 180
apply layer style ......................................................................................................................................................................... 181
auto count.................................................................................................................................................................................... 182
batch .............................................................................................................................................................................................. 183
change mode .............................................................................................................................................................................. 184
close ............................................................................................................................................................................................... 185
clear ................................................................................................................................................................................................ 186
contract ......................................................................................................................................................................................... 187
convert .......................................................................................................................................................................................... 188
convert color ............................................................................................................................................................................... 188
convert to shape ........................................................................................................................................................................ 188
copy................................................................................................................................................................................................ 189
443209076.001.png
Zgłoś jeśli naruszono regulamin