Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
RE: how to show unread emails with geektools??

can someone give me a step to step explanation not just a link thanks.😀
(mac)

Below is the script I use to show unread email in mail.
1. Save and name the script (ie Inbox.scpt)
2. Put the script in /Users/(yourname or computer)/Documents/
3. Open shell command in GeekTool
4. Input osascript /Users/(yourname or computer)/Documents/(name of the script)

--------

set messageList to {}

tell application "Mail"
repeat with pendingMessage in (messages of inbox whose read status is false and deleted status is false)
tell pendingMessage


--get sender's name
set senderName to extract name from sender

--if there is no name, or the address line is malformed, better to show just the address
if senderName is equal to sender then
set senderName to extract address from sender
end if

--mark flagged messages specially
if pendingMessage is flagged status then
set bullet to "» "
else
set bullet to "• "
end if

copy bullet & tab & senderName & ":" & tab & subject & linefeed to end of messageList
end tell
end repeat
end tell

messageList as text
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.