You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+84-26Lines changed: 84 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -4,68 +4,126 @@ All notable changes to the Adobe Script Runner extension will be documented in t
4
4
5
5
## [Unreleased]
6
6
7
-
## Released
7
+
### Added
8
+
9
+
*
10
+
11
+
### Changed
12
+
13
+
*
14
+
15
+
### Fixed
16
+
17
+
*
18
+
19
+
### Removed
20
+
21
+
*
22
+
23
+
---
24
+
25
+
## [0.3.0] 2019-12-12
26
+
27
+
### Added
28
+
29
+
* Option to always **Execute File From Config** file defined in **Execute This** section, ignoring the one in active viewer.
30
+
* Option to **Execute File From Token**`Adobe-Script-Runner "path/to/file.jsx"` in active document to execute file between the quotes.
31
+
32
+
### Changed
33
+
34
+
* Codebase rewritten from scratch.
35
+
* Renamed configuration keys and titles.
36
+
37
+
### Removed
38
+
39
+
* Checkbox **Run Untitled**.
40
+
41
+
---
8
42
9
43
## [0.2.1] 2019-01-05
10
44
11
-
- Updates default Windows paths to CC2019 version.
12
-
- Updates descriptions for `Run Untitled`, `Save Dirty`, and `Temp File` in extensions Settings window.
45
+
### Changed
46
+
47
+
* Updates default Windows paths to CC2019 version.
48
+
* Updates descriptions for `Run Untitled`, `Save Dirty`, and `Temp File` in extensions Settings window.
49
+
50
+
---
13
51
14
52
## [0.2.0] 2018-03-29
15
53
16
-
- Fixed bug when settings were not registered until app restart.
17
-
- Fixed issue with HOME "~/" paths.
18
-
- Changed code flow. Splits everything to modules for easier maintenance and development. Also makes it easier for other apps to adopt the functionality.
19
-
- Ports functionality to [Atom.io](https://atom.io/packages/adobe-script-runner).
54
+
### Fixed
55
+
56
+
* Fixed bug when settings were not registered until app restart.
57
+
* Fixed issue with HOME "~/" paths.
58
+
59
+
### Changed
60
+
61
+
* Changed code flow. Splits everything into modules for easier maintenance and development. Also makes it easier for other apps to adopt the functionality.
62
+
* Ports functionality to [Atom.io](https://atom.io/packages/adobe-script-runner).
63
+
64
+
---
20
65
21
66
## [0.1.2] 2018-03-14
22
67
23
68
### Added
24
69
25
-
- Added default keybinding `Cmd+R` ro tun `adobeScriptRunner.ae` command.
26
-
- Added instructions on how to assign keybindings to commands in `README.md` file.
70
+
* Default keybinding `Cmd+R` ro tun `adobeScriptRunner.ae` command.
71
+
* Instructions on how to assign keybindings to commands in `README.md` file.
72
+
73
+
---
27
74
28
75
## [0.1.1] 2018-03-14
29
76
30
77
### Changed
31
78
32
-
- Changed extension icon.
79
+
* Extension icon.
80
+
81
+
---
33
82
34
83
## [0.1.0] 2018-03-13
35
84
36
85
### Added
37
86
38
-
- Support to open scripts inside `Adobe InCopy`.
39
-
- Support for Windows.
87
+
* Support to execute scripts in `Adobe InCopy`.
88
+
* Support for Windows.
89
+
90
+
---
40
91
41
92
## [0.0.3] 2018-03-12
42
93
43
94
### Added
44
95
45
-
- Support to open scripts inside `Adobe ExtendScript Toolkit`.
46
-
- Looping gif to README.md file that looks fantastic.
47
-
96
+
* Support to open scripts inside `Adobe ExtendScript Toolkit`.
97
+
* Looping gif to README.md file that looks amazing.
98
+
99
+
### Fixed
100
+
101
+
* Fixed typos in `README.md`.
102
+
48
103
### Changed
49
104
50
-
- Updated `extension.js` to use es6 syntax.
51
-
- Updated info message to show app name the script has been sent to.
52
-
- Renamed settings object `adobeScriptLauncher` to `adobeScriptRunner`.
53
-
- Fixed typos in `README.md`.
54
-
- Changed location of temp file `Snippet.js` to `~/.vscode` instead of `~/Desktop` folder.
55
-
- Created `resources` folder to dump all image files there.
105
+
* Updated `extension.js` to use es6 syntax.
106
+
* Updated info message to show app name the script has been sent to.
107
+
* Renamed settings object `adobeScriptLauncher` to `adobeScriptRunner`.
108
+
* Changed location of temp file `Snippet.js` to `~/.vscode` instead of `~/Desktop` folder.
109
+
* Created `resources` folder to dump all image files there.
110
+
111
+
---
56
112
57
113
## [0.0.2] 2018-03-11
58
114
59
115
### Added
60
116
61
-
- Support to run scripts inside`Adobe Illustrator`.
62
-
- Support to run scripts inside`Adobe InDesign`.
117
+
* Support to execute scripts in`Adobe Illustrator`.
118
+
* Support to execute scripts in`Adobe InDesign`.
63
119
64
120
### Changed
65
121
66
-
- README.md and CHANGELOG.md files to reflect changes.
67
-
- Refactored `scriptCommands` object.
122
+
* README.md and CHANGELOG.md files to reflect changes.
Script runner for Adobe applications right from VSCode. Extension also available for [Atom.io](https://atom.io/packages/adobe-script-runner).
3
+
Script runner for Adobe applications right from VSCode. Extension available for [Atom.io](https://atom.io/packages/adobe-script-runner), [Sublime Text](https://github.com/rendertom/Sublime-Text-Adobe-Script-Runner) and [VSCode](https://marketplace.visualstudio.com/items?itemName=renderTom.adobe-script-runner).
@@ -15,15 +15,15 @@ Script runner for Adobe applications right from VSCode. Extension also available
15
15
16
16
## Features
17
17
18
-
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.
18
+
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 the script inside the selected application.
19
19
20
-
Extension will open host application first if it's not running, and then execute the script.
20
+
The extension will open host application first if it's not running, and then execute the script.
21
21
22
-
> Tip: You don't need to have file saved inside VSCode. Extension will be able to run code from unsaved documents. Kaboom!
22
+
> Tip: You don't need to have the file saved inside VSCode. The extension will be able to run code from unsaved documents.
23
23
24
-
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).
24
+
Map keyboard shortcuts to execute a script even faster - `Cmd+R` is bind to run a script inside After Effects by default. Read how to change it in [Key bindings](#key-bindings).
25
25
26
-
**Note:** Contribution to support other Adobe applications is highly encouraged.
26
+
Adobe Script Runner executes script in the active viewer by default. However, when working with multi-file scripts, it is common to set a path to execute a master file, i.e `index.js`, from within a file that's in the active view. Such behavior can be modified using [Token](#token) or setting up [execute this](#execute-this) file in the settings.
27
27
28
28
## Installation
29
29
@@ -37,20 +37,20 @@ Map keyboard shortcuts to execute script even faster - `Cmd+R` is bind to run sc
37
37
38
38
## In action
39
39
40
-
- Launch VSCode and open your own jsx file, or for testing just type `alert("Hello World")`.
41
-
- 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.
42
-
- Hopefully After Effects will fire up and run your script 🙏
40
+
- Launch VSCode and open jsx file, or for testing simply type `alert("Hello World");`.
41
+
- 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.
42
+
- Hopefully After Effects will fire up and execute your script 🙏
43
43
44
44
## Key bindings
45
45
46
-
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
+
Keyboard shortcut `Cmd+R` is bind to `adobeScriptRunner.ae` command, which will run a script inside Adobe After Effects. To change the command or assign a different shortcut, do the following:
47
47
48
48
- Open Keyboard Shortcuts editor and click on the link `keybindings.json`.
49
49
- 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.
50
-
- With `keybindings.json` in focus click `Cmd+K` twice to open interactive keybinding modal window (or whatever it’s called) and follow the onscreen instructions. This will create a new binding entry in `keybindings.json` file.
51
-
- Edit the `command` property to `adobeScriptRunner.XX`, where XX is abbreviation of the application. Check available abbreviations in `Extensions > Adobe Script Runner > Contributions` tab.
50
+
- With `keybindings.json` in focus click `Cmd+K` twice to open an interactive keybinding modal window (or whatever it’s called) and follow the on-screen instructions. This will create a new binding entry in the`keybindings.json` file.
51
+
- Edit the `command` property to `adobeScriptRunner.XX`, where XX is an abbreviation of the application. Check available abbreviations in `Extensions > Adobe Script Runner > Contributions` tab.
52
52
53
-
End result should look like this.
53
+
The result should look something like this:
54
54
55
55
```json
56
56
{
@@ -60,25 +60,48 @@ End result should look like this.
60
60
},
61
61
```
62
62
63
-
For more information about keybinding check official [Key Bindings for Visual Studio Code](https://code.visualstudio.com/docs/getstarted/keybindings).
63
+
For more information about keybinding check official [Key Bindings for Visual Studio Code](https://code.visualstudio.com/docs/getstarted/keybindings).
64
+
65
+
## Token
66
+
67
+
Use token to execute a different file, rather than the one in the viewer. Add `Adobe-script-runner "path/to/file.jsx"` at the beginning of the file in the active document to always execute the file between quotes.
68
+
69
+
```javascript
70
+
/*
71
+
Adobe-script-runner '../../index.js'
72
+
Executes file between quotes rather than the one in the active viewer.
73
+
*/
74
+
75
+
alert('Hello World'); // This line never gets executed, unless `index.js` is referencing the file in viewer.
76
+
```
77
+
78
+
The file path gets resolved by joining the path of the file in the viewer and the file within the quotes.
79
+
80
+
## Execute this
81
+
82
+
Use this option to set-up a path to a file to execute always, ignoring the file in the viewer, globally or per-project basis. To do so, open settings (`Cmd+,` on Mac or `Ctrl+,` on Windows) and set the path to a file in **Extensions -> Adobe Script Runner -> Execute This**.
83
+
84
+
The file path gets resolved by joining this path and the Workspace (or Root `/`) folder.
64
85
65
86
## Settings
66
87
67
88
Click `Cmd+,` on Mac or `Ctrl+,` on Windows to modify settings. Extension exposes the following settings:
68
89
69
-
-`adobeScriptRunner.saveDirty`: toggle to run unsaved (dirty) files.
70
-
-`adobeScriptRunner.runUntitled`: toggle to run untitled files. Define location of temporary file in `adobeScriptRunner.tempFile` setting.
71
-
-`adobeScriptRunner.tempFile`: location to save temporary file. Used only when `adobeScriptRunner.runUntitled` is enabled.
90
+
-`adobeScriptRunner.executeFileFromConfig`: Whether to execute file, defined in config `.vscode/settings.json` file. See more in [Execute this](#execute-this) section.
91
+
-`adobeScriptRunner.executeFileFromToken`: Whether to search for `Adobe-Script-Runner "path/to/file.jsx"` token in active document, and execute file within the quotes. See more in [Token](#token) section.
92
+
-`adobeScriptRunner.executeThis`: A path to a file to execute always, ignoring the file in the viewer, globally or per-project basis. See more in [Execute this](#execute-this) section.
93
+
-`adobeScriptRunner.saveFileBeforeExecution`: Whether to save file before execution.
94
+
-`adobeScriptRunner.temporaryFile`: Path to a temporary file where Untitled document gets saved prior to execution.
72
95
73
96
**For Windows users only:**
74
97
75
-
-`adobeScriptRunner.winEstkExe`: path to Adobe ExtendScript Toolkit executable (ExtendScript Toolkit.exe).
76
-
-`adobeScriptRunner.winAfterFxExe`: path to Adobe After Effects executable (AfterFX.exe).
98
+
-`adobeScriptRunner.winAfterEffectsExe`: path to Adobe After Effects executable (AfterFX.exe).
99
+
-`adobeScriptRunner.winExtendscriptToolkitExe`: path to Adobe ExtendScript Toolkit executable (ExtendScript Toolkit.exe).
77
100
-`adobeScriptRunner.winIllustratorExe`: path to Adobe Illustrator executable (Illustrator.exe).
78
101
-`adobeScriptRunner.winPhotoshopExe`: path to Adobe Photoshop executable (Photoshop.exe).
79
102
80
-
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 ¯\\\_(ツ)\_/¯
103
+
Executable paths for InCopy and InDesign for Windows are not exposed because they are handled differently than the rest of the Adobe apps. Go figure Adobe ¯\\\_(ツ)\_/¯
81
104
82
105
## Known issues
83
106
84
-
-Host application does not get focus on script run.
107
+
-The host application does not get focus on script run.
0 commit comments