Applescript method to determine number of unread messages?
Posted: Sun May 25, 2008 6:27 pm
I'm using the "Status Screen Saver" which lets me see whether I have new messages & stuff without unlocking my machine, which is neat. It lets you add new applications to watch using applescript modules to get unread item counts. Adding Vienna RSS and even my webmail was possible, but I'm a little stuck on Adium. I can get the number of open chats like so (from the trac page on applescript):
tell application "Adium"
return count of every chat
end tell
but that only lets me know how many chats have been opened - if someone I was talking to before sends a new message, that number won't help me.
Is there any way to access the number of unread messages? i.e. the number that goes up on the dock badge?
tell application "Adium"
return count of every chat
end tell
but that only lets me know how many chats have been opened - if someone I was talking to before sends a new message, that number won't help me.
Is there any way to access the number of unread messages? i.e. the number that goes up on the dock badge?