I'd like to have an image conversion start from a small script (for PS CC2017), but I can't find the "magic quotes" to also have it start up with command line options...
Something like this is working fine inside a Windows shortcut target field:
Code: Select all
"C:\program.exe" -options "c:\input.tiff" -o "c:\output.tiff"
This starts the program fine:
Code: Select all
var convert_it = new File("/c/program.exe");
convert_it.execute();
Code: Select all
var convert_it = new File("/c/program.exe" -options "c:\input.tiff" -o "c:\output.tiff");
var convert_it = new File("'/c/program.exe' -options 'c:\input.tiff' -o 'c:\output.tiff'");
var convert_it = new File("/c/program.exe" -options "/c/input.tiff" -o "/c/output.tiff");
var convert_it = new File("'/c/program.exe' -options '/c/input.tiff' -o '/c/output.tiff'");
Thanks!
P.S. RIP and Thank You for Everything, Mike Hale...!