Getting started with ExtendScript by Jeff Davis
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Adobe Sample Scripts
Hello World.jsx
README.md

README.md

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

  1. Download the repo of files to:
Mac: /Applications/Adobe Photoshop CC/Presets/Scripts/
WIN: C:\Program Files\Adobe\Adobe Photoshop CC\Presets\Scripts\ 
  1. Open Photoshop CC
  2. Go to File > Scripts > "Hello World, or The Name of your script"

HELLO WORLD! EXAMPLES

  • Dialog Prompt via an Alert
  • Set background and foregrond 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