just got a little idea... here's the AppleScript!
since my dock is auto-hiding, i cant see when i have a new mail. so with geektool, i can put the shell (always on top), in the top corner, and i dont have to move my mouse to know if i have a new mail!
im lazy, i know...
Code:
tell application "System Events" to set iCalIsRunning to (name of processes) contains "Mail"
set finalText to ""
if iCalIsRunning then
tell application id "com.apple.mail"
set unreadCount to (get unread count of inbox)
if unreadCount > 0 then
set finalText to "█"
end if
end tell
end if
finalText
since my dock is auto-hiding, i cant see when i have a new mail. so with geektool, i can put the shell (always on top), in the top corner, and i dont have to move my mouse to know if i have a new mail!
im lazy, i know...