Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Run shell script from javascript

$
0
0

Hi all,

 

anybody know if it's possible to run a shell command from within javascript? The ultimate goal is to place a javascript in the Scripts Menu of Photoshop that would run an applescript. I know you're going to say why not just do the script in javascript but the script I'm trying to execute does a lot more outside of PhotoShop. As an applescript is not accessible from the Scripts Menu I wandered if I could get a javascript to execute the applescript. The reason that Shell script is mentioned in the subject is because I can execute an applescript using a simple shell command of : osacript /path/to/the/script/file.scpt So if JavaScript can run the shell command I should be able to get it to work.

 

Thanks for looking,

Nik


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>