Skip to content Skip to sidebar Skip to footer

Make Photoshop Run System Command Through Javascript

I have a line of code as below app.system('cmd.exe python D:\project\PStest.py'); This is to run a python script from within photoshop. The similar question is asked here already

Solution 1:

I got that error while in ExtendedScript tool with the wrong environement.

I never manadge to get the app.system() command to work with:

#target photoshop
app.system( "python  C:\ps_test.py"); 

the cmd window popup and close right away, nothing happens. If you know the right way to write it.

A workaround I found as a beginner.

#target photoshop
var bat = new File("C:/ps_test.bat");
bat.execute();

Post a Comment for "Make Photoshop Run System Command Through Javascript"