File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ const editor = {
1818 } ,
1919
2020 getPath ( activeTextEditor ) {
21- return activeTextEditor . document . fileName ;
21+ let str = activeTextEditor . document . fileName ;
22+ return ( / .* (? = \. t s ) / . test ( str ) ) ? str . replace ( / \. t s $ / , '.jsx' ) : str ;
2223 } ,
2324
2425 save ( activeTextEditor ) {
Original file line number Diff line number Diff line change 7878 },
7979 "adobeScriptRunner.winAfterFxExe" : {
8080 "type" : " string" ,
81- "default" : " C:/Program Files/Adobe/Adobe After Effects CC 2018 /Support Files/AfterFX.exe" ,
81+ "default" : " C:/Program Files/Adobe/Adobe After Effects CC 2019 /Support Files/AfterFX.exe" ,
8282 "description" : " Windows only: Path to Adobe After Effects executable (AfterFX.exe)."
8383 },
8484 "adobeScriptRunner.winIllustratorExe" : {
8585 "type" : " string" ,
86- "default" : " C:/Program Files/Adobe/Adobe Illustrator CC 2018 /Support Files/Contents/Windows/Illustrator.exe" ,
86+ "default" : " C:/Program Files/Adobe/Adobe Illustrator CC 2019 /Support Files/Contents/Windows/Illustrator.exe" ,
8787 "description" : " Windows only: Path to Adobe Illustrator executable (Illustrator.exe)."
8888 },
8989 "adobeScriptRunner.winPhotoshopExe" : {
9090 "type" : " string" ,
91- "default" : " C:/Program Files/Adobe/Adobe Photoshop CC 2018 /Photoshop.exe" ,
91+ "default" : " C:/Program Files/Adobe/Adobe Photoshop CC 2019 /Photoshop.exe" ,
9292 "description" : " Windows only: Path to Adobe Photoshop executable (Photoshop.exe)."
9393 }
9494 }
125125 "@types/node" : " ^7.0.43" ,
126126 "@types/mocha" : " ^2.2.42"
127127 }
128- }
128+ }
Original file line number Diff line number Diff line change 1+ alert ( app . name ) ;
Original file line number Diff line number Diff line change 1+ alert ( app . name ) ;
Original file line number Diff line number Diff line change 1+ {
2+ // Compile your typescript file into .jsx in same folder on every save.
3+ //
4+ // This setup allows you to work in .ts files to use the very helpful auto-complete of app DOMs
5+ // and all the benefits of typescript while supporting using Adobe Script Runner commands.
6+ //
7+ // Preview: https://gfycat.com/ImpressiveFondGreatargus
8+ //
9+ // After saving this file into ./host/ (or any parent of or same folder as your scripts),
10+ // hit Ctrl+Shift+B, and choose 'tcs:watch (relative path to this file)' to run this task.
11+ //
12+ "compileOnSave" : true ,
13+ "compilerOptions" : {
14+ // The output file can be explicitly defined
15+ "outFile" : " ./host.jsx" ,
16+ "allowJs" : true ,
17+ "noLib" : true ,
18+ "types" : [
19+ // Once you've run `npm init -y`, `npm install pravdomil/types-for-adobe` in terminal
20+ // targeting your directory, paths to supported apps will be node_modules/...
21+ //
22+ " types-for-adobe/illustrator/2015.3"
23+ // "types-for-adobe/AfterEffects/2018"
24+ // "types-for-adobe/Photoshop/2015.5"
25+ // "types-for-adobe/Premiere/2018"
26+ // "types-for-adobe/InDesign/2018"
27+ // "types-for-adobe/Audition/2018"
28+ ]
29+ },
30+ "files" : [
31+ // The typescript file can be explicitly defined to prevent compiling multiple files
32+ " host.ts"
33+ ],
34+ "exclude" : [
35+ " node_modules"
36+ ]
37+ }
You can’t perform that action at this time.
0 commit comments