【发布时间】:2012-10-22 21:41:12
【问题描述】:
我有一个 shell 脚本,它检查文件夹是否有一定数量的文件并向用户显示错误消息。我使用 applescript 来显示错误消息。有没有办法将shell脚本的变量传递给AppleScript?
这是我所拥有的:
declare -i count=5;
osascript -e 'tell app "Xcode" to display dialog "Counted $count items." buttons {"Continue"}'
我希望输出为Counted 5 items.,但输出为Counted $count items. 如何将shell 脚本变量传递给applescript?
【问题讨论】:
标签: shell applescript