ExtendScript - Hello World!
This repo was created to help get started using ExtendScript. For the purposes of demonstration the enclosed files in this repo are all written for Photoshop CC and should be used within that version.
INSTALLING EXTENDSCRIPT
- Download the repo of files to:
Mac: /Applications/Adobe Photoshop CC/Presets/Scripts/
WIN: C:\Program Files\Adobe\Adobe Photoshop CC\Presets\Scripts\
- Open Photoshop CC
- Go to File > Scripts > "Hello World, or The Name of your script"
HELLO WORLD! EXAMPLES
- Dialog Prompt via an Alert
- Set background and foreground colors to RGB value
- Add new color to swatches
- Working with Dialog to create custom text in a layer set
- Working with Document Object (height, width, resolution, file name)
- Working with Layer Object (creating and naming layersets and layers)
- Working with Text (modifying text to be certain size and font)
- Save file as PNG to desktop
RESOURCES
Additional references from Adobe are available below.
Photoshop CC Scripting Guide
http://www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop-cc-scripting-guide.pdf
Photoshop CC JavaScript Reference
http://www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop-cc-javascript-ref.pdf
Photoshop Document Specification
http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
Photoshop DOM
http://objjob.phrogz.net/pshop/hierarchy
AUTHOR
Jeff Davis @tahoedesigner