0

我想用 Automator 制作一个 Applescript 液滴,它执行以下操作:当我在液滴中放置“Application.app”时,脚本运行

./upx.out -d [the binary contained in the MacOS subfolder of Application.app]

其中“Application.app”和二进制是变量,upx.out 包含在 Automator 液滴的 Resources 子文件夹中。

4

1 回答 1

0
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

然后将脚本保存为应用程序。

于 2016-10-05T18:17:28.383 回答