问题
I need to use the terminal commands using Javascript on ExtendScript toolkit. For example, using pdffonts
command on terminal window.
pdffonts ~/Desktop/fontlist.pdf
回答1:
If you use After Effects you can simply use:
system.callSystem('Your command');
Or write your command into bat file, and then to use:
new File('path/to/bat/file.bat').execute();//for windows
new File('path/to/bat/file.sh').execute();//for mac
来源:https://stackoverflow.com/questions/33732071/how-to-use-terminal-command-using-extendscript-toolkit