使用launchdlaunch agents和launchctl,Apple Mac OSX Plist可实现更好的文件夹操作
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用launchdlaunch agents和launchctl,Apple Mac OSX Plist可实现更好的文件夹操作相关的知识,希望对你有一定的参考价值。
Stolen from stetho -- All thanks to him -- Now, about your folder actions… http://bit.ly/fW9ExM
<?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>Disabled</key> <false/> <key>Label</key> <string>com.domain.myapplescript</string> <key>Program</key> <string>/usr/bin/osascript</string> <key>ProgramArguments</key> <array> <string>osascript</string> <string>/Library/Scripts/myapplescript/myapplescript.scpt</string> </array> <key>WatchPaths</key> <array> <string>/Volumes/path/to/folder/to/watch</string> </array> <key>RunAtLoad</key> <true/> <key>onDemand</key> <true/> </dict> </plist>
以上是关于使用launchdlaunch agents和launchctl,Apple Mac OSX Plist可实现更好的文件夹操作的主要内容,如果未能解决你的问题,请参考以下文章
为啥 Haskell 没有符号(a la ruby)/原子(a la erlang)?