Skip to content

Commit 19e517d

Browse files
author
Benedikt Gross
committed
Added Sublime Text build system for Indesign CC
1 parent bb7b880 commit 19e517d

7 files changed

+16
-7
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// copy this file to ~/Library/Application Support/Sublime Text 2/Packages/User
21
{
32
"cmd": ["osascript", "$packages/Basiljs/run_idscript_5.scpt", "$file"]
43
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// copy this file to ~/Library/Application Support/Sublime Text 2/Packages/User
21
{
32
"cmd": ["osascript", "$packages/Basiljs/run_idscript_5.5.scpt", "$file"]
43
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// copy this file to ~/Library/Application Support/Sublime Text 2/Packages/User
21
{
32
"cmd": ["osascript", "$packages/Basiljs/run_idscript_6.0.scpt", "$file"]
43
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"cmd": ["osascript", "$packages/Basiljs/run_idscript_CC.scpt", "$file"]
3+
}

extras/Sublime Text/Basiljs/run_idscript_5.scpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
on run argv
55
set aScriptPath to "#include \"" & item 1 of argv & "\""
66
tell application "Adobe InDesign CS5"
7-
--display dialog aScriptPath
7+
--display dialog aScriptPath
88
do script aScriptPath language javascript
99
end tell
1010
end run
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--usage:
2+
--osascript run.scpt myscript.jsx
3+
4+
on run argv
5+
set aScriptPath to "#include \"" & item 1 of argv & "\""
6+
tell application "Adobe InDesign CC 2014"
7+
do script aScriptPath language javascript
8+
end tell
9+
end run

extras/Sublime Text/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
This folder `bundle/extras/Sublime Text/Basiljs` contains a few build scripts for the text editor [Sublime Text 2](http://www.sublimetext.com/2). This means basically that you can run a Basil.js script (or any other Indesign script) directly from Sublime Text.
1+
This folder `bundle/extras/Sublime Text/Basiljs` contains a few build scripts for the text editor [Sublime Text](http://www.sublimetext.com/). This means basically that you can run a Basil.js script (or any other Indesign script) directly from Sublime Text.
22

3-
1. Copy the folder `Basiljs` (`bundle/extras/Sublime Text/Basiljs`) to your Sublime Text 2 `Packages` directory e.g. OS X: `~/Library/Application Support/Sublime Text 2/Packages/Basiljs`
4-
2. Now you should have a new Build System: `Tools -> Build System -> Indesign 6` ... Select the one with the Indesign you want
3+
1. Copy the folder `Basiljs` (`bundle/extras/Sublime Text/Basiljs`) to your Sublime Text `Packages` directory e.g. OS X: `~/Library/Application Support/Sublime Text 3/Packages/User/Basiljs` or `~/Library/Application Support/Sublime Text 2/Packages/Basiljs`
4+
2. Now you should have a new Build System: `Tools -> Build System -> Indesign X` ... Select the one with the Indesign you want
55
3. Open a Basil.js sketch or any other Adobe Indesign script
66
4. Press `CMD+B` to run the script
77

0 commit comments

Comments
 (0)