darbinieks / Sublime-Text-Adobe-Script-Runner

Run Adobe scripts from Sublime Text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adobe Script Runner

Script runner for Adobe applications right from Sublime Text. Extension also available for VSCode and Atom.io.

Supported applications

  • Adobe After Effects
  • Adobe ExtendScript Toolkit
  • Adobe Illustrator
  • Adobe InCopy
  • Adobe InDesign
  • Adobe Photoshop

Installation

  • Download repository and unzip the package,
  • Copy "Adobe Script Runner" folder into Sublime Text’s "Packages" folder:
    • MAC: ~/Users/USERNAME/Library/Application Support/Sublime Text 3/Packages/Adobe Script Runner
    • WIN: C:\Users\USERNAME\AppData\Roaming\Sublime Text 3\Packages\Adobe Script Runner

In action

  • Launch Sublime Text and open any ExtendScript JSX file you want to run in Adobe application,
  • In Sublime Text navigate to Tools -> Build System and pick an application you want to execute your file in,
  • Click CMD+B on Mac or CTRL+B on Windows and watch the magic.

For Windows users only

If you have Adobe applications installed in a custom location, you will need to modify paths to executables in hostApp.sublime-build files:

// Adobe After Effects.sublime-build

{
    "windows": {
        "cmd": "\"Path-To-AfterFX.exe\" -r $file"
    }
}

Executable paths for InCopy and InDesign for Windows are not exposed because they are handled differently than the rest of the apps. Go figure Adobe ¯\(ツ)


Package is highly inspired by Sébastien Lavoie's After Effects Scripting Sublime Text Package, however, it works slightly different and also adds support for more Adobe applications.

About

Run Adobe scripts from Sublime Text