Archive for the ‘Missing Menu Commands’ Category
August 11 '09 - 10:44 am
Re-Posting Stream Startup Script
A couple few days ago I posted a script here that would ping the Radio Paradise stream until its server accepted the connection, suppressing the error dialog that would appear when a connection was denied. Well, that was the wrong version of the script. Here is the correct version, and the one I fire up every morning. You must select a radio stream track first, then run the script:
tell application "iTunes"
if selection is {} then return
set strm to (item 1 of selection)
if (get class of strm) is not URL track then return
repeat
try
play strm
exit repeat
on error m number n
delay 15
end try
end repeat
end tell
The earlier script used the open location command, errors from which could not be defeated with the try block.
posted in AppleScript, Managing Tracks, Missing Menu Commands, Snippets, iTunes