如何使用 ExtendScript 工具包使用终端命令 [英] How to use Terminal command using ExtendScript toolkit
本文介绍了如何使用 ExtendScript 工具包使用终端命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在 ExtendScript 工具包上使用 Javascript 使用终端命令.例如,在终端窗口使用 pdffonts
命令.
I need to use the terminal commands using Javascript on ExtendScript toolkit. For example, using pdffonts
command on terminal window.
pdffonts ~/Desktop/fontlist.pdf
推荐答案
如果您使用 After Effects,您可以简单地使用:
If you use After Effects you can simply use:
system.callSystem('Your command');
或者将你的命令写入bat文件,然后使用:
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
这篇关于如何使用 ExtendScript 工具包使用终端命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文