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

Display currently playing iTunes song as iChat AV status Apps
It looks like iChat AV is scriptable (at last!). One easy application for this is to set your status message dynamically, to say, the song you are listening to in iTunes. That script would look something like this:
on idle
 tell application "iTunes"
  if player state is playing then
   set a to artist of current track
   if a is "" then
    set a to "mysterious unknown music"
   end if
  else
   set a to "nothing"
  end if
 end tell

 tell application "iChat"
  set status message to "listening to " & a
 end tell

 return 20
end idle
Save this in script editor as application with "Stay Open" enabled. Have fun!
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[10,261 views]  

Display currently playing iTunes song as iChat AV status | 12 comments | Create New Account
Click here to return to the 'Display currently playing iTunes song as iChat AV status' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
iChat Status
Authored by: Cantus on Jul 11, '03 08:36:52AM
iChat Status does this for you and offers many more options (I'm not connected in any way to this app).

[ Reply to This | # ]
iChat Status
Authored by: inspired_tmu on Oct 08, '03 10:32:57AM

Another "program" that does this same thing is iChat Status Manager, a K Widget programmed by yours truly.

The only advantage iCS has over iCSM currently is that iCS supports AppleScript properties (Konfabulator does not currently support compiled appleScripts).

http://www.widgetgallery.com/view.php?widget=35731



[ Reply to This | # ]
I second iChat Status
Authored by: Paul Burney on Jul 11, '03 09:03:47AM

I've been using it since I first saw it mentioned and it works great with both iChat and iChatAV. Lots of customization possible. You can even write shell scripts for it to use. Get it from versiontracker.com.



[ Reply to This | # ]
Getting rid of iChat Status
Authored by: Eukaryote on Jul 16, '03 10:37:43PM

I like iChat Status, but I want to try the script. But now that I've installed it, I don't know how to get rid of it! I tried taking out the prefpane from the library, but it still is there!

What files do I remove to get rid of it?



[ Reply to This | # ]
Getting rid of iChat Status
Authored by: boelie on Jul 18, '03 03:05:41PM
Just erase the iChatStatus.prefPane from the folder ~/Library/PreferencePanes [or wherever you installed it...]

[ Reply to This | # ]
let it all hang out
Authored by: SOX on Jul 11, '03 01:44:24PM

I think I'll also include my sartorial status. like

Listening in Bathrobe to XXXX
Listening Naked to XXXX

If 'm going to share I might as well let it all hang out.



[ Reply to This | # ]
Display currently playing iTunes song as iChat AV status
Authored by: kconboy on Jul 11, '03 03:42:50PM

Hrm.. or you could use <a hrerf="http://ittpoi.com/stem.php?product=com.ittpoi.ichatstatus&type=frameset">iChatStatus</a> which can do a lot more than just your current iTunes music.. computer uptime, etc.

---
----
kev



[ Reply to This | # ]
Display currently playing iTunes song as iChat AV status
Authored by: daeley on Jul 11, '03 04:07:19PM

iChat Status is pretty cool, but it should be pointed out that it's a PrefPane (i.e. goes into System Preferences) rather than being a small running app. It also addresses iChat via lower level system calls (a la the iChat Menu Item) rather than AppleScripts. This hint allows you to customize your own setup and I believe get just as much functionality without the necessity of a PrefPane. In other words, this hint is potentially as good as iChat Status.



[ Reply to This | # ]
Display currently playing iTunes song as iChat AV status
Authored by: phc on Jul 12, '03 03:17:21PM

Which one runs more efficienty? iChatStatus or that script?



[ Reply to This | # ]
Display currently playing iTunes song as iChat AV status
Authored by: yubbie2 on Jul 12, '03 01:50:41AM

i like this script a lot, especially because i don't have to deal with installing the pref pane of ichatstatus

one question though - is there a way to make ichat revert back to simply "available" if and when itunes is paused? i've been playing around with applescript and can't seem to get it. anybody have any ideas? i found the appropriate ichat script commands but i just can't make it work.



[ Reply to This | # ]
Display currently playing iTunes song as iChat AV status
Authored by: shmit on Jul 12, '03 03:00:21PM

Well, I changed the script a little bit so it'd only update iChat if your set to available in it.

on idle
	tell application "iChat"
		if status is available then
			tell application "iTunes"
				if player state is playing then
					set a to artist of current track
					if a is "" then
						set a to "unknown artist"
					end if
					
					tell application "iChat"
						set status message to "NP: " & a
					end tell
				end if
			end tell
		end if
	end tell
end idle

if you want to set the status back to available when iTunes isn't playing, you can make it look like this:

on idle
	tell application "iChat"
		if status is available then
			tell application "iTunes"
				if player state is playing then
					set a to artist of current track
					if a is "" then
						set a to "unknown artist"
					end if
					set a to "NP: & a
				else
					set a to "Available"
				end if
					
				tell application "iChat"
					set status message to a
				end tell
			end tell
		end if
	end tell
end idle


[ Reply to This | # ]
Display currently playing iTunes song as iChat AV status
Authored by: DougAdams on Jul 14, '03 07:09:36AM
Over the weekend, I received seven (!) AppleScript submissions based on this hint. I have posted Now Playing in iChat AV.

Cheers,
Doug
Doug's AppleScripts for iTunes

---



[ Reply to This | # ]