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


/ Published in: AppleScript
Save to your folder(s)

Stolen from stetho -- All thanks to him -- Now, about your folder actions… http://bit.ly/fW9ExM


Copy this code and paste it in your HTML
  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>

URL: http://bit.ly/fW9ExM

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.