【发布时间】:2014-02-15 07:32:53
【问题描述】:
当我的应用程序移入垃圾文件夹时,我想运行一个脚本,我知道使用启动代理是可能的,我用谷歌搜索并创建了 plist,但它不工作或不调用脚本..
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.meet.anywhere</string>
<key>WatchPaths</key>
<array>
<string>~/.Trash</string>
</array>
<key>ProgramArguments</key>
<array>
<string>/Users/eclit/Desktop/DeleteScript.scpt</string>
</array>
<key>KeepAlive</key>
<false/>
</dict>
</plist>
【问题讨论】:
标签: macos shell applescript launchd