BlueTooth Phone New Email Message Script for Sony Ericsson Clicker
Sorry for the boring design of the page, working on other things for now...

 

This Script will return a Message to your T68i telling you how many new EMails you have waiting for you in your Mail.app inbox.

To use, copy the text below, go into SEC prefernces and creat a new action in the Action Editor, when it promts you, make sure you choose the message box type action, then paste it into the window...

 

global currUnread
global checkMailDelay


set checkMailDelay to 10


set currUnread to 0
tell application "Mail"
      check for new mail
      delay checkMailDelay
      set everyAccount to every account
      repeat with eachAccount in everyAccount
            set everyMailbox to every mailbox of eachAccount
            repeat with eachMailbox in everyMailbox
                  if name of eachMailbox is "Inbox" then
                        set unreadCount to unread count of eachMailbox
                  end if
            end repeat
            set currUnread to (currUnread + unreadCount)
       end repeat

       return {"New Emails", (currUnread as string)}
end tell