gpt4 book ai didi

adobe - 如何从 Extendscript 中调用 python 或 shell 脚本?

转载 作者:行者123 更新时间:2023-12-04 11:40:29 32 4
gpt4 key购买 nike

我有一个需要从 Extendscript 脚本中调用的 python 脚本。是否有任何可用的库函数可以做到这一点?我尝试在文档和许多其他在线资源中找到解决方案,但到目前为止没有任何效果。任何帮助表示赞赏。

最佳答案

ExtendScript File 对象有一个 execute() 方法,正如 Fabian 已经展示的那样。
我不知道 .term 文件,而是使用 .command 文件,这是一个普通的 shell 脚本而不是 XML。

如果在 InDesign 中运行,您可以绕过 Terminal.app 并使用 AppleScript:

myScript = 'do shell script "diff f1 f2 > o" ';
app.doScript(myScript, ScriptLanguage.applescriptLanguage);

关于adobe - 如何从 Extendscript 中调用 python 或 shell 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14430312/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com