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>EnvironmentVariables</key>
  8. <dict/>
  9. <key>Label</key>
  10. <string>local.youridentifier.relaunch-itunes</string>
  11. <key>ProgramArguments</key>
  12. <array>
  13. <string>/usr/bin/osascript</string>
  14. <string>-e</string>
  15. <string>on forceQuitiTunes()
  16. tell application "System Events"
  17. set pid to missing value
  18. repeat 10 times
  19. try
  20. set pid to unix id of process "iTunes"
  21. tell application "iTunes" to quit
  22. on error
  23. return
  24. end try
  25. delay 1
  26. end repeat
  27. do shell script "iTunes=" &amp; pid &amp; "
  28. for i in {1.10}
  29. do
  30. kill -0 $iTunes || exit 0
  31. kill -9 $iTunes
  32. sleep 1
  33. done &gt; /dev/null"
  34. end tell
  35. end forceQuitiTunes
  36. forceQuitiTunes()
  37. tell application "iTunes" to reveal URL track "181.FM - True R&amp;B" of user playlist "Internet Songs"</string>
  38. </array>
  39. <key>RunAtLoad</key>
  40. <false/>
  41. <key>StartCalendarInterval</key>
  42. <array>
  43. <dict>
  44. <key>Hour</key>
  45. <integer>0</integer>
  46. <key>Minute</key>
  47. <integer>0</integer>
  48. </dict>
  49. </array>
  50. </dict>
  51. </plist>

Relaunch iTunes