Build plugin for Sublime Text. Allows to run ExtendScript code in Photoshop from within Sublime Text.
Sublime Text 2 and Sublime Text 3. Phototoshop CS6 -> CC 2015.5 (defaults to CC 2015.5), see below how to target your version
Copy the ExtendScript-PS
folder in your Sublime Text Packages folder (to find it, Sublime Text > Preferences > Browse Packages...
).
Open a JSX file or create a new one: mind you, it must be saved at least once, then select Tools > Build System > ExtendScript-PS
.
To run it, then just 'Tools > Build'
or use the usual shortcuts (Command+B on Mac, Ctrl+B on Windows).
Locate the file run.scpt
and change the "Adobe Photoshop CC 2015.5"
string to match the PS version you want to use (e.g. "Adobe Photoshop CC"
) then save.
Locate the file build.bat
and change the set version='CC 2015.5'
string to match the PS version you want to use (e.g. set version='CC'
) then save.
You can choose to run the debugger (ESTK) before running, never, or on runtime error. Look in the run.scpt
file, delete the do javascript
line and substitute with either:
do javascript file (arg's item 1) show debugger before running
do javascript file (arg's item 1) show debugger never
do javascript file (arg's item 1) show debugger on runtime error
I've borrowed the idea from a package made by Sebastien Lavoie for AfterEffects (http://seblavoie.com/contact), that I've then tweaked a bit.