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...oh wait, no it isn’t, all you have to do is enable 'Remote Apple Events' on the computer with iTunes (in System Preferences » Sharing), and then open up ~/Library » Application Support » Linkinus 2 » Scripts » itunes.scpt, and make the following changes...
Existing code:
New code:
New code:
Save your changes, and that's it. You'll now be getting your iTunes track info from the remote computer instead of the local computer. Geek points +1 for today.
[robg adds: I haven't tested this one.]
Alas, all is lost...oh wait, no it isn’t, all you have to do is enable 'Remote Apple Events' on the computer with iTunes (in System Preferences » Sharing), and then open up ~/Library » Application Support » Linkinus 2 » Scripts » itunes.scpt, and make the following changes...
Existing code:
tell application "Finder" if (get name of every process) contains "iTunes" then set itunes_active to true end tell
set itunes_active to trueThis will stop Linkinus from checking on the local computer for iTunes. Next change; existing code:
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
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
[robg adds: I haven't tested this one.]
•
[5,210 views]

