rendertom / VSCode-Adobe-Script-Runner

Run Adobe scripts from VSCode
https://marketplace.visualstudio.com/items?itemName=renderTom.adobe-script-runner
87 stars 15 forks source link

Run script from a command line #12

Closed zadlo closed 4 years ago

zadlo commented 4 years ago

Is there a way to run exacute script-runner from command line? I would like to run it from gulp.

Inventsable commented 4 years ago

Pretty sure you can do this in any terminal and perhaps through a childProcess or shell package from within gulp. Something like:

"C:\Program Files\Adobe\Adobe Illustrator CC 2018\Support Files\Contents\Windows\illustrator.exe" -r "C:\Users\TRSch\OneDrive\Documents\Adobe Scripts\examples\test.jsx"
rendertom commented 4 years ago

What @Inventsable said.

The extension works by simply executing a shell command and passing the file in the active viewer. Feel free to open hostApps.js file from the extension folder rendertom.adobe-script-runner-0.3.0/lib/hostApps.js and see all available commands.

Cheers.