This is a work in progress. Use at your own risk.
Sublime Text 2 package for building extenscript (jsx) in Illustrator CC. Based on the package for After Effects by Seb Lavoie and the completion file from moluapple's package for Illustrator and Indesign (Windows only). It provides code completion in Sublime Text 2 and the ability to run the scripts in Illustrator via the build command.
- The build & run scripts are hard coded for Illustrator CC en_GB version. Editing them for other installations should be trivial enough but there is no handy config file yet.
- Windows script is completely untested
- Be sure to save your script in UTF8 (withough BOM). Extenscript interprets Byte order mark as a syntax error.
- The console messages don't get caught in Sublime's own console
- Mac: run.scpt sometimes fails with error
Expected end of line but found identifier
. Running a script liketell application "Adobe Photoshop CS6" do javascript "alert('hello world')" end tell
from the ApplesSript Editor should fix it.
The build system will :
- Copy your current .jsx file in your Illustrator Scripts folder so you don't have to develop in that folder.
- Run the script in Illustrator.
git clone https://github.com/seblavoie/After-Effects-Scripting-Sublime-Text-Package.git Illustrators
- Download and unzip in your Sublime Text 2 packages folder.
- Rename the folder to
Illustrator
.
The "Packages" directory is located at:
-
OS X
~/Library/Application Support/Sublime Text 2/Packages
-
Linux
~/.config/sublime-text-2/Packages/
-
Windows
%APPDATA%/Sublime Text 2/Packages/
- Get Package Control for Sublime Text 2.
- In the command palette, start typing 'repository' and select 'Package Control: Add Repository'.
- Copy the clone url of the present repository in the prompt field.
Open Sublime Text 2 and go Tools > Build System > Illustrator
and build with โ + B
(OS X) CTRL + B
(Windows)