- <?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>EnvironmentVariables</key>
- <dict/>
- <key>Label</key>
- <string>local.youridentifier.relaunch-itunes</string>
- <key>ProgramArguments</key>
- <array>
- <string>/usr/bin/osascript</string>
- <string>-e</string>
- <string>on forceQuitiTunes()
- tell application "System Events"
- set pid to missing value
- repeat 10 times
- try
- set pid to unix id of process "iTunes"
- tell application "iTunes" to quit
- on error
- return
- end try
- delay 1
- end repeat
- do shell script "iTunes=" & pid & "
- for i in {1.10}
- do
- kill -0 $iTunes || exit 0
- kill -9 $iTunes
- sleep 1
- done > /dev/null"
- end tell
- end forceQuitiTunes
- forceQuitiTunes()
- tell application "iTunes" to reveal URL track "181.FM - True R&B" of user playlist "Internet Songs"</string>
- </array>
- <key>RunAtLoad</key>
- <false/>
- <key>StartCalendarInterval</key>
- <array>
- <dict>
- <key>Hour</key>
- <integer>0</integer>
- <key>Minute</key>
- <integer>0</integer>
- </dict>
- </array>
- </dict>
- </plist>
Relaunch iTunes