【问题标题】:Applescript droplet that executes shell script执行 shell 脚本的 Applescript Droplet
【发布时间】:2017-02-03 22:26:56
【问题描述】:
我想用 Automator 制作一个 Applescript 液滴,它执行以下操作:当我将“Application.app”放入液滴中时,脚本运行
./upx.out -d [the binary contained in the MacOS subfolder of Application.app]
其中“Application.app”和二进制文件是变量,其中 upx.out 包含在 Automator 液滴的 Resources 子文件夹中。
【问题讨论】:
标签:
binary
applescript
automator
upx
【解决方案1】:
on open myItem
set pathtobinary to [you'll need to figure out how to get the path to the binary inserted here as a function of myItem]
do shell script "./upx.out -d " & quoted form of pathtobinary
end open
然后将脚本保存为应用程序。