JavaScript Reference Guide.pdf
(
3436 KB
)
Pobierz
Photoshop JavaScript Reference
b
c
Adobe
Photoshop
cs
2
®
®
© 2005 Adobe Systems Incorporated. All rights reserved.
Adobe® Creative Suite 2 Photoshop
®
JavaScript 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, GoLive, Illustrator, 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 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 ............................................................................................................................... 37
Script Support in Adobe Photoshop CS2 ............................................................................................................................37
JavaScript support .................................................................................................................................................................38
Executing scripts ....................................................................................................................................................................38
Installing scripts ...............................................................................................................................................................38
Executing other scripts ..................................................................................................................................................38
Startup scripts .........................................................................................................................................................................38
Changes Since Earlier Versions................................................................................................................................................39
Changes in ScriptUI ...............................................................................................................................................................39
2
JavaScript Object Reference ..................................................................................................... 41
Working with the Properties Tables ......................................................................................................................................41
displayDialogs.................................................................................................................................................................41
Working with the Methods Tables .........................................................................................................................................41
executeAction.................................................................................................................................................................42
Working with Method Parameters ..................................................................................................................................42
ActionDescriptor ..........................................................................................................................................................................43
Properties..................................................................................................................................................................................43
count ..................................................................................................................................................................................43
typename .........................................................................................................................................................................43
Methods ....................................................................................................................................................................................43
clear ....................................................................................................................................................................................43
erase ...................................................................................................................................................................................43
fromStream......................................................................................................................................................................43
getBoolean.......................................................................................................................................................................43
getClass .............................................................................................................................................................................43
getData..............................................................................................................................................................................43
getDouble ........................................................................................................................................................................43
getEnumerationType ...................................................................................................................................................43
getEnumerationValue..................................................................................................................................................43
getInteger.........................................................................................................................................................................43
getKey................................................................................................................................................................................43
getList ................................................................................................................................................................................43
getObjectType................................................................................................................................................................44
getObjectValue...............................................................................................................................................................44
getPath ..............................................................................................................................................................................44
getReference ...................................................................................................................................................................44
getString ...........................................................................................................................................................................44
getType .............................................................................................................................................................................44
getUnitDoubleType ......................................................................................................................................................44
getUnitDoubleValue.....................................................................................................................................................44
hasKey................................................................................................................................................................................44
isEqual................................................................................................................................................................................44
putBoolean ......................................................................................................................................................................44
putClass.............................................................................................................................................................................44
putData .............................................................................................................................................................................44
3
Adobe Photoshop CS2
JavaScript Scripting Reference
4
putDouble ........................................................................................................................................................................44
putEnumerated ..............................................................................................................................................................44
putInteger ........................................................................................................................................................................44
putList ................................................................................................................................................................................45
putObject..........................................................................................................................................................................45
putPath..............................................................................................................................................................................45
putReference...................................................................................................................................................................45
putString...........................................................................................................................................................................45
putUnitDouble................................................................................................................................................................45
toStream ...........................................................................................................................................................................45
ActionList.........................................................................................................................................................................................46
count ..................................................................................................................................................................................46
typename .........................................................................................................................................................................46
clear ....................................................................................................................................................................................46
getBoolean.......................................................................................................................................................................46
getClass .............................................................................................................................................................................46
getData..............................................................................................................................................................................46
getDouble ........................................................................................................................................................................46
getEnumerationType ...................................................................................................................................................46
getEnumerationValue..................................................................................................................................................46
getInteger.........................................................................................................................................................................46
getList ................................................................................................................................................................................46
getObjectType................................................................................................................................................................46
getObjectValue...............................................................................................................................................................47
getPath ..............................................................................................................................................................................47
getReference ...................................................................................................................................................................47
getString ...........................................................................................................................................................................47
getType .............................................................................................................................................................................47
getUnitDoubleType ......................................................................................................................................................47
getUnitDoubleValue.....................................................................................................................................................47
putBoolean ......................................................................................................................................................................47
putClass.............................................................................................................................................................................47
putData .............................................................................................................................................................................47
putDouble ........................................................................................................................................................................47
putEnumerated ..............................................................................................................................................................47
putInteger ........................................................................................................................................................................47
putList ................................................................................................................................................................................47
putObject..........................................................................................................................................................................47
putPath..............................................................................................................................................................................47
putReference...................................................................................................................................................................48
putString...........................................................................................................................................................................48
putUnitDouble................................................................................................................................................................48
ActionReference ...........................................................................................................................................................................49
Properties..................................................................................................................................................................................49
typename .........................................................................................................................................................................49
Methods ....................................................................................................................................................................................49
getContainer ...................................................................................................................................................................49
getDesiredClass..............................................................................................................................................................49
getEnumeratedType.....................................................................................................................................................49
getEnumeratedValue ...................................................................................................................................................49
getForm.............................................................................................................................................................................49
Adobe Photoshop CS2
JavaScript Scripting Reference
5
getIdentifier.....................................................................................................................................................................49
getIndex............................................................................................................................................................................49
getName ...........................................................................................................................................................................49
getOffset ...........................................................................................................................................................................49
getProperty......................................................................................................................................................................49
putClass.............................................................................................................................................................................49
putEnumerated ..............................................................................................................................................................50
putIdentifier.....................................................................................................................................................................50
putIndex............................................................................................................................................................................50
putName...........................................................................................................................................................................50
putOffset...........................................................................................................................................................................50
putProperty......................................................................................................................................................................50
Application .....................................................................................................................................................................................51
Properties..................................................................................................................................................................................51
activeDocument.............................................................................................................................................................51
backgroundColor...........................................................................................................................................................51
colorSettings ...................................................................................................................................................................51
displayDialogs.................................................................................................................................................................51
documents .......................................................................................................................................................................51
fonts....................................................................................................................................................................................51
foregroundColor ............................................................................................................................................................51
freeMemory .....................................................................................................................................................................51
locale ..................................................................................................................................................................................51
macintoshFileTypes......................................................................................................................................................51
name...................................................................................................................................................................................51
notifiers .............................................................................................................................................................................52
notifiersEnabled .............................................................................................................................................................52
path.....................................................................................................................................................................................52
playbackDisplayDialogs ..............................................................................................................................................52
playbackParameters .....................................................................................................................................................52
preferences ......................................................................................................................................................................52
preferencesFolder .........................................................................................................................................................52
scriptingVersion .............................................................................................................................................................52
typename .........................................................................................................................................................................52
version ...............................................................................................................................................................................52
windowsFileTypes.........................................................................................................................................................52
Methods ....................................................................................................................................................................................53
batch ..................................................................................................................................................................................53
beep....................................................................................................................................................................................53
bringToFront ...................................................................................................................................................................53
charIDToTypeID..............................................................................................................................................................53
doAction ...........................................................................................................................................................................53
executeAction.................................................................................................................................................................53
executeActionGet..........................................................................................................................................................53
load .....................................................................................................................................................................................53
makeContactSheet........................................................................................................................................................53
makePDFPresentation .................................................................................................................................................53
makePhotoGallery.........................................................................................................................................................53
makePhotomerge..........................................................................................................................................................54
makePicturePackage ....................................................................................................................................................54
open ...................................................................................................................................................................................54
Plik z chomika:
bohem
Inne pliki z tego folderu:
html_biblia.rar
(27981 KB)
access_2000_ksiega_eksperta.rar
(16770 KB)
borlandc++przyklady.rar
(13386 KB)
3d_studio_max.rar
(2542 KB)
abc_systemu_windows_xp.rar
(4587 KB)
Inne foldery tego chomika:
- Euro 2012
Pliki dostępne do 01.06.2025
Pliki dostępne do 08.07.2024
Pliki dostępne do 19.01.2025
Pliki dostępne do 21.01.2024
Zgłoś jeśli
naruszono regulamin