Posted By

brandonjp on 02/17/11


Tagged

mac folder osx apple plist agents launch launchd actions launchctl


Versions (?)

Apple Mac OSX Plist for better Folder Actions with launchd, launch agents, launchctl


 / Published in: AppleScript
 

URL: http://bit.ly/fW9ExM

Stolen from stetho -- All thanks to him -- Now, about your folder actions… 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>

Report this snippet  

You need to login to post a comment.