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


Click here to return to the 'GeekTool - Useful and fun info on the desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
GeekTool - Useful and fun info on the desktop
Authored by: wah on Jul 08, '04 01:55:59PM

Thanks. nice little plug-in. But what I'd like to figure out is how to display mail's numbered dock icon (or any image for that matter) at desktop level when I have unread messages.



[ Reply to This | # ]
GeekTool - Useful and fun info on the desktop
Authored by: Eravau on Jul 08, '04 06:37:24PM
All I did was create a one-line AppleScript in a text file and called it unread_mail_count. Inside of it was:
   tell application "Mail" to set need_to_read to unread count of mailbox "your_mailbox_name" of account "your_account_name"
Then from GeekTool I added a shell "log" with the file path osascript /full/path/to/unread_mail_count

After that, it's just setting up the GeekTool window with the font, color, placement, etc. that you want.


[ Reply to This | # ]