使用launchdlaunch agents和launchctl,Apple Mac OSX Plist可实现更好的文件夹操作

【使用launchdlaunch agents和launchctl,Apple Mac OSX Plist可实现更好的文件夹操作】高斋晓开卷,独共圣人语。这篇文章主要讲述使用launchdlaunch agents和launchctl,Apple Mac OSX Plist可实现更好的文件夹操作相关的知识,希望能为你提供帮助。
Stolen from stetho -- All thanks to him -- Now, about your folder actionsa€| http://bit.ly/fW9ExM

  1. < ?xml version=" 1.0" encoding=" UTF-8" ?>
  2. < !DOCTYPE plist PUBLIC " -//Apple//DTD PLIST 1.0//EN" " http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
  3. < plist version=" 1.0" >
  4. < dict>
  5. < key> Disabled< /key>
  6. < false/>
  7. < key> Label< /key>
  8. < string> com.domain.myapplescript< /string>
  9. < key> Program< /key>
  10. < string> /usr/bin/osascript< /string>
  11. < key> ProgramArguments< /key>
  12. < array>
  13. < string> osascript< /string>
  14. < string> /Library/Scripts/myapplescript/myapplescript.scpt< /string>
  15. < /array>
  16. < key> WatchPaths< /key>
  17. < array>
  18. < string> /Volumes/path/to/folder/to/watch< /string>
  19. < /array>
  20. < key> RunAtLoad< /key>
  21. < true/>
  22. < key> onDemand< /key>
  23. < true/>
  24. < /dict>
  25. < /plist>


    推荐阅读