У меня есть следующий скрипт, который успешно извлекает текущую дорожку и обновляет мой статус «Сообщения» (iChat), но для того, чтобы это работало автономно, мне нужно запустить его в цикле? Рекомендации для этого?
tell application "Rdio"
set theTrack to current track
set theArtist to artist of theTrack
set theName to name of theTrack
end tell
tell application "Messages"
if status is available then
set status message to ("♫ Playing in Rdio: " & (theArtist as string) & " - " & (theName as string))
end if
end tell