Use the Sony Ericsson Clicker to display iTunes songs

Apr 11, '03 10:06:00AM

Contributed by: DougAdams

You don't need a Sony Ericsson phone to have fun with iTunes and the Sony Ericsson Clicker. Here's a tip I posted at my iTunes AppleScripting site from Mike Samuels that lets you display the name of the currently playing iTunes track across your screen (like in the screenshot located here).

First, download and install the Sony Ericsson Clicker. Next, copy and paste the following script to Script Editor, and save as an application, with "Stay Open" checked:

global latest_song

property okflag : false

on run
  set okflag to false
  tell application "Finder"
    if (get name of every process) contains "iTunes" then set okflag to true
  end tell
  if okflag then
    set latest_song to ""
 else
    quit
  end if
end run

on idle
  tell application "iTunes"
    copy name of current track to current_tracks_name
    if current_tracks_name is not latest_song then
      copy current_tracks_name to latest_song
      tell application "SEC Helper"
        show screen message current_tracks_name duration 6
      end tell
    end if
    return 10
  end tell
end idle
Run the script, which will stay running in the background until you Quit it from its File Menu. Everytime a song starts playing in iTunes, a banner will be displayed across your screen with the track name.

Have fun!

[robg adds: I haven't tested this one, but it sounds pretty interesting!]

Comments (6)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030410110744731