• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Next unread message in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Next unread message in Mail.app


  • Subject: Next unread message in Mail.app
  • From: Jim Krenz <email@hidden>
  • Date: Wed, 20 May 2009 18:07:26 -0700

Hello all,

I am trying to create a script that will move to the next mailbox with unread messages, and select the first unread message. I haven't been successful (I'm still a AppleScript beginner). Here is what I have thus far. Any suggestions are welcome.

tell application "Mail" to try
tell message viewer 1 to set selected messages to {first message of beginning of (get mailbox whose unread count > 0) whose read status is false}
activate
on error
beep
end try
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Next unread message in Mail.app
      • From: Luther Fuller <email@hidden>
References: 
 >Re: Excel Save as text question (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Filemaker 10 and AS - GUI key press 'space'
  • Next by Date: Re: Next unread message in Mail.app
  • Previous by thread: Re: Excel Save as text question
  • Next by thread: Re: Next unread message in Mail.app
  • Index(es):
    • Date
    • Thread