3

如何从 shell 脚本调用苹果脚本。

我有一个 shell 脚本,我在我的 xcode 项目的运行脚本阶段使用它。在执行此 shell 脚本之前,我想调用另一个苹果脚本?

4

1 回答 1

2

您可以使用该osascript实用程序。

这是该实用程序的介绍,使用man osascript

OSASCRIPT(1)              BSD General Commands Manual             OSASCRIPT(1)

NAME
   osascript -- execute AppleScripts and other OSA language scripts

SYNOPSIS
   osascript [-l language] [-s flags] [-e statement | programfile] [argument ...]

DESCRIPTION
   osascript executes the given script.  It was designed for use with AppleScript,
   but will work with any Open Scripting Architecture (OSA) language. 
   ...

您可能还对该osacompile实用程序感兴趣。

于 2012-08-29T23:37:15.493 回答