从命令行将 applescript 捆绑到应用程序中

Jer*_*ell 1 command-line applescript macos

我可以从 applescript 编辑器将 applescript 文件编译到应用程序中,但我希望能够从命令行执行此操作。

有谁知道我怎么能做到这一点?

gho*_*ppe 5

/usr/bin/osacompile -o /path/to/applicationbundle.app /path/to/textfile.txt
Run Code Online (Sandbox Code Playgroud)

运行man osacompile以获取更多信息。