Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set iChat status by Network Location (revisited)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set iChat status by Network Location (revisited)
Authored by: inertia186 on May 14, '04 11:01:16AM

Is there a script that can update my iChat status so the exact time index of an exact iTunes track is displayed, such that another user running a similar script can synchronize their iTunes to hear roughly the same thing I'm hearing? That would be so cool!



[ Reply to This | # ]
Set iChat status by Network Location (revisited)
Authored by: jonbauman on May 14, '04 11:24:48AM

Here's a basic one to do that:


tell application "iTunes"
	set theName to name of current track
	set theArtist to artist of current track
	set theMinutes to player position div 60
	set theSeconds to player position mod 60
	
	tell application "iChat"
		set status message to theArtist & ": \"" & theName & "\" (" & theMinutes & ":" & theSeconds & ")"
	end tell
end tell
Writing the script that synchronizes iTunes based on the status message generated by this script is an exercise left to the reader.

---

jon

[ Reply to This | # ]

Set iChat status by Network Location (revisited)
Authored by: DougAdams on May 17, '04 11:06:44AM
Check out Now Playing in iChat AV. It's a stay-open app that monitors iTunes and sticks info in the status message. Feel free to borrow routines from it.

[ Reply to This | # ]