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 に答える