为 OS X 应用程序创建新的命令行界面

Creating new command line interface for OS X application

我想为我的 OS x 应用程序创建一个新命令。

例如,在terminal/applescript中调用此命令:

oascript -s 'tell application "[MYAPP]" to [FUNCTION] with parameters [PARAMETER1,2,etc.]'

我很确定我使用了错误的词汇来描述这个,因为我的搜索尝试没有成功。

感谢您的宝贵时间!

您需要明确支持您的应用脚本。查看 Apple Developer guide on this