Skip to content

Commit 800561a

Browse files
committed
Merge branch 'Dev'
2 parents 854107e + bc536a2 commit 800561a

File tree

3 files changed

+121
-65
lines changed

3 files changed

+121
-65
lines changed

CHANGELOG.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,59 @@
11
# Change Log
2-
All notable changes to the Adobe Script Runner extension will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
32

3+
All notable changes to the Adobe Script Runner extension will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
44

55
## [Unreleased]
66

77
## Released
88

9+
## [0.1.2] 2018-03-14
10+
11+
### Added
12+
13+
- Added default keybinding `Cmd+R` ro tun `adobeScriptRunner.ae` command.
14+
- Added instructions on how to assign keybindings to commands in `README.md` file.
15+
16+
## [0.1.1] 2018-03-14
17+
18+
### Changed
19+
20+
- Changed extension icon.
21+
922
## [0.1.0] 2018-03-13
23+
1024
### Added
25+
1126
- Support to open scripts inside `Adobe InCopy`.
1227
- Support for Windows.
1328

1429
## [0.0.3] 2018-03-12
30+
1531
### Added
32+
1633
- Support to open scripts inside `Adobe ExtendScript Toolkit`.
1734
- Looping gif to README.md file that looks fantastic.
1835

1936
### Changed
37+
2038
- Updated `extension.js` to use es6 syntax.
2139
- Updated info message to show app name the script has been sent to.
2240
- Renamed settings object `adobeScriptLauncher` to `adobeScriptRunner`.
2341
- Fixed typos in `README.md`.
2442
- Changed location of temp file `Snippet.js` to `~/.vscode` instead of `~/Desktop` folder.
2543
- Created `resources` folder to dump all image files there.
2644

27-
2845
## [0.0.2] 2018-03-11
46+
2947
### Added
48+
3049
- Support to run scripts inside `Adobe Illustrator`.
3150
- Support to run scripts inside `Adobe InDesign`.
3251

3352
### Changed
53+
3454
- README.md and CHANGELOG.md files to reflect changes.
3555
- Refactored `scriptCommands` object.
3656

37-
3857
## [0.0.1] 2018-03-10
58+
3959
- Initial release

README.md

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Script runner for Adobe applications right from VSCode.
44
![Adobe Script Runner](/resources/Adobe-Script-Runner.gif)
55

66
## Supported applications
7+
78
- Adobe After Effects
89
- Adobe ExtendScript Toolkit
910
- Adobe Illustrator
@@ -13,45 +14,70 @@ Script runner for Adobe applications right from VSCode.
1314

1415
## Features
1516

16-
Run commands are accessible via `Command Palette`. Simply click `F1` or `Cmd+Shit+P` and start typing the name of `supported applications`. Click enter to run script inside the selected application.
17+
Run commands are accessible via `Command Palette`. Simply click `F1` or `Cmd+Shift+P` and start typing the name of `supported applications`. Click enter to run script inside the selected application.
1718

1819
Extension will open host application first if it's not running, and then execute the script.
1920

2021
> Tip: You don't need to have file saved inside VSCode. Extension will be able to run code from unsaved documents. Kaboom!
2122
22-
Map keyboard shortcuts to execute the script even faster. Read how to do this on [Key Bindings for Visual Studio Code](https://code.visualstudio.com/docs/getstarted/keybindings) page.
23+
Map keyboard shortcuts to execute script even faster - `Cmd+R` is bind to run script inside After Effects by default. Read how to change it in [Key bindings](#key-bindings).
2324

24-
**Note:** Contribution to support other Adobe applications as well as Windows is highly encouraged.
25+
**Note:** Contribution to support other Adobe applications is highly encouraged.
2526

2627
## Installation
27-
* ### From VSCode Marketplace
28-
* Get it from [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=renderTom.adobe-script-runner).
2928

30-
* ### From GitHub
31-
* Download this repository and unzip the package.
32-
* Copy `VSCode-Adobe-Script-Runner-master` to `/Users/YOURUSER/.vscode/extensions` folder.
29+
- ### From VSCode application
30+
- Open `Extensions` and type `Adobe Script Runner`.
31+
- Click `Install` and then `Reload` button.
32+
33+
- ### From GitHub
34+
- Download repository and unzip the package.
35+
- Copy `VSCode-Adobe-Script-Runner-master` to `/Users/YOURUSER/.vscode/extensions` folder.
3336

3437
## In action
35-
* Launch VSCode and open your own jsx file, or for testing just type `alert("Hello World")`.
36-
* Launch `Command Palette` with keyboard shortcut `F1` or `Cmd+Shift+P` and type `Adobe After Effects` and click enter.
37-
* Hopefully After Effects will fire up and run your script 🙏
38+
39+
- Launch VSCode and open your own jsx file, or for testing just type `alert("Hello World")`.
40+
- Click `Cmd+R` on Mac or `Ctrl+R` on Windows or launch `Command Palette` with keyboard shortcut `F1` or `Cmd+Shift+P` and type `Adobe After Effects` and click enter.
41+
- Hopefully After Effects will fire up and run your script 🙏
42+
43+
## Key bindings
44+
45+
Keyboard shortcut `Cmd+R` is bind to `adobeScriptRunner.ae` command, which will run script inside Adobe After Effects. To change the command or assign different shortcut, do the following:
46+
47+
- Open Keyboard Shortcuts editor and click on the link `keybindings.json`.
48+
- This will open the Default Keyboard Shortcuts on the left and your `keybindings.json` file where you can overwrite the default bindings on the right.
49+
- With `keybindings.json` in focus click `Cmd+K` twice to open interactive keybinding modal window (or whatever it’s called) and follow the on screen instructions. This will create a new binding entry in `keybindings.json` file.
50+
- Edit the `command` property to `adobeScriptRunner.XX`, where XX is abbreviation of the application. Check available abbreviations in `Extensions > Adobe Script Runner > Contributions` tab.
51+
52+
End result should look like this.
53+
54+
```json
55+
{
56+
"key": "cmd+r",
57+
"command": "adobeScriptRunner.ae",
58+
"when": "editorTextFocus"
59+
},
60+
```
61+
62+
For more information about keybinding check official [Key Bindings for Visual Studio Code]( https://code.visualstudio.com/docs/getstarted/keybindings).
3863

3964
## Settings
4065

4166
Click `Cmd+,` on Mac or `Ctrl+,` on Windows to modify settings. Extension exposes the following settings:
4267

43-
* `adobeScriptRunner.saveDirty`: toggle to run unsaved (dirty) files.
44-
* `adobeScriptRunner.runUntitled`: toggle to run untitled files. Define location of temporary file in `adobeScriptRunner.tempFile` setting.
45-
* `adobeScriptRunner.tempFile`: location to save temporary file. Used only when `adobeScriptRunner.runUntitled` is enabled.
68+
- `adobeScriptRunner.saveDirty`: toggle to run unsaved (dirty) files.
69+
- `adobeScriptRunner.runUntitled`: toggle to run untitled files. Define location of temporary file in `adobeScriptRunner.tempFile` setting.
70+
- `adobeScriptRunner.tempFile`: location to save temporary file. Used only when `adobeScriptRunner.runUntitled` is enabled.
4671

4772
**For Windows users only:**
48-
* `adobeScriptRunner.winEstkExe`: path to Adobe ExtendScript Toolkit executable (ExtendScript Toolkit.exe).
49-
* `adobeScriptRunner.winAfterFxExe`: path to Adobe After Effects executable (AfterFX.exe).
50-
* `adobeScriptRunner.winIllustratorExe`: path to Adobe Illustrator executable (Illustrator.exe).
51-
* `adobeScriptRunner.winPhotoshopExe`: path to Adobe Photoshop executable (Photoshop.exe).
5273

53-
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 ¯\\\_(ツ)\_
74+
- `adobeScriptRunner.winEstkExe`: path to Adobe ExtendScript Toolkit executable (ExtendScript Toolkit.exe).
75+
- `adobeScriptRunner.winAfterFxExe`: path to Adobe After Effects executable (AfterFX.exe).
76+
- `adobeScriptRunner.winIllustratorExe`: path to Adobe Illustrator executable (Illustrator.exe).
77+
- `adobeScriptRunner.winPhotoshopExe`: path to Adobe Photoshop executable (Photoshop.exe).
5478

79+
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 ¯\\\_(ツ)\_
5580

5681
## Known issues
57-
* Host application does not get focus on script run.
82+
83+
- Host application does not get focus on script run.

package.json

Lines changed: 52 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "adobe-script-runner",
33
"displayName": "Adobe Script Runner",
44
"description": "Run Adobe scripts from VSCode",
5-
"version": "0.1.1",
5+
"version": "0.1.2",
66
"publisher": "renderTom",
77
"icon": "resources/icon.png",
88
"galleryBanner": {
@@ -25,7 +25,8 @@
2525
],
2626
"main": "./extension",
2727
"contributes": {
28-
"commands": [{
28+
"commands": [
29+
{
2930
"command": "adobeScriptRunner.ae",
3031
"title": "Adobe After Effects"
3132
},
@@ -50,49 +51,58 @@
5051
"title": "Adobe Photoshop"
5152
}
5253
],
53-
"configuration": [{
54-
"type": "object",
55-
"title": "Adobe Script Launcher configuration",
56-
"properties": {
57-
"adobeScriptRunner.saveDirty": {
58-
"type": "boolean",
59-
"default": true,
60-
"description": "Save dirty files before evaluating."
61-
},
62-
"adobeScriptRunner.runUntitled": {
63-
"type": "boolean",
64-
"default": true,
65-
"description": "Save untitled file before evaluating. Set file destination in 'tempFile' option."
66-
},
67-
"adobeScriptRunner.tempFile": {
68-
"type": "string",
69-
"default": "~/.vscode/Snippet.js",
70-
"description": "Saves untitled document to temporary file. Used only when 'saveUndefined' is set to 'true'."
71-
},
72-
"adobeScriptRunner.winEstkExe": {
73-
"type": "string",
74-
"default": "C:/Program Files (x86)/Adobe/Adobe ExtendScript Toolkit CC/ExtendScript Toolkit.exe",
75-
"description": "Windows only: Path to Adobe ExtendScript Toolkit executable (ExtendScript Toolkit.exe)."
76-
},
77-
"adobeScriptRunner.winAfterFxExe": {
78-
"type": "string",
79-
"default": "C:/Program Files/Adobe/Adobe After Effects CC 2018/Support Files/AfterFX.exe",
80-
"description": "Windows only: Path to Adobe After Effects executable (AfterFX.exe)."
81-
},
82-
"adobeScriptRunner.winIllustratorExe": {
83-
"type": "string",
84-
"default": "C:/Program Files/Adobe/Adobe Illustrator CC 2018/Support Files/Contents/Windows/Illustrator.exe",
85-
"description": "Windows only: Path to Adobe Illustrator executable (Illustrator.exe)."
86-
},
87-
"adobeScriptRunner.winPhotoshopExe": {
88-
"type": "string",
89-
"default": "C:/Program Files/Adobe/Adobe Photoshop CC 2018/Photoshop.exe",
90-
"description": "Windows only: Path to Adobe Photoshop executable (Photoshop.exe)."
54+
"configuration": [
55+
{
56+
"type": "object",
57+
"title": "Adobe Script Runner configuration",
58+
"properties": {
59+
"adobeScriptRunner.saveDirty": {
60+
"type": "boolean",
61+
"default": true,
62+
"description": "Save dirty files before evaluating."
63+
},
64+
"adobeScriptRunner.runUntitled": {
65+
"type": "boolean",
66+
"default": true,
67+
"description": "Save untitled file before evaluating. Set file destination in 'tempFile' option."
68+
},
69+
"adobeScriptRunner.tempFile": {
70+
"type": "string",
71+
"default": "~/.vscode/Snippet.js",
72+
"description": "Saves untitled document to temporary file. Used only when 'saveUndefined' is set to 'true'."
73+
},
74+
"adobeScriptRunner.winEstkExe": {
75+
"type": "string",
76+
"default": "C:/Program Files (x86)/Adobe/Adobe ExtendScript Toolkit CC/ExtendScript Toolkit.exe",
77+
"description": "Windows only: Path to Adobe ExtendScript Toolkit executable (ExtendScript Toolkit.exe)."
78+
},
79+
"adobeScriptRunner.winAfterFxExe": {
80+
"type": "string",
81+
"default": "C:/Program Files/Adobe/Adobe After Effects CC 2018/Support Files/AfterFX.exe",
82+
"description": "Windows only: Path to Adobe After Effects executable (AfterFX.exe)."
83+
},
84+
"adobeScriptRunner.winIllustratorExe": {
85+
"type": "string",
86+
"default": "C:/Program Files/Adobe/Adobe Illustrator CC 2018/Support Files/Contents/Windows/Illustrator.exe",
87+
"description": "Windows only: Path to Adobe Illustrator executable (Illustrator.exe)."
88+
},
89+
"adobeScriptRunner.winPhotoshopExe": {
90+
"type": "string",
91+
"default": "C:/Program Files/Adobe/Adobe Photoshop CC 2018/Photoshop.exe",
92+
"description": "Windows only: Path to Adobe Photoshop executable (Photoshop.exe)."
93+
}
9194
}
9295
}
93-
}]
96+
],
97+
"keybindings": [
98+
{
99+
"command": "adobeScriptRunner.ae",
100+
"key": "ctrl+r",
101+
"mac": "cmd+r",
102+
"when": "editorTextFocus"
103+
}
104+
]
94105
},
95-
96106
"keywords": [
97107
"Adobe",
98108
"Estk",

0 commit comments

Comments
 (0)