How to use Terminal command using ExtendScript toolkit

落花浮王杯 提交于 2020-01-17 04:55:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!