In Linkinus, you can get the currently playing iTunes track info by typing /itunes, which is all well and good, but what if you have a beautiful g4 iMac dedicated to IRC, but you play your music on another computer ? Alas, all is lost ! O wait, no it isn’t, all you have to do is enable “Remote Apple Events” on the computer with iTunes (in sharing, in system preferences) and then open up ~/Library/Application Support/Linkinus 2/Scripts/itunes.scpt and make the following changes:
1. Change:
tell application "Finder" if (get name of every process) contains "iTunes" then set itunes_active to true end tell
To:
set itunes_active to true
This will stop it checking on the local computer for iTunes. Next change:
tell application "iTunes" if player state is playing then set theTrack to name of the current track set theArtist to artist of the current track set theAlbum to album of the current track set theBitrate to bit rate of the current track set theKind to kind of the current track set theRating to rating of the current track set theStream to current stream title set got_track to true end if end tell
To:
set dest to "eppc://username:password@hostname" using terms from application "iTunes" tell application "iTunes" of machine dest set theTrack to name of the current track set theArtist to artist of the current track set theAlbum to album of the current track set theBitrate to bit rate of the current track set theKind to kind of the current track set theRating to rating of the current track set theStream to current stream title set got_track to true end tell end using terms from
… and lo and behold, you’re getting your iTunes track info from the remote computer instead. Geek points +1 for today.
