Hello, I am trying to develop (well, actually modify) a script to provide navigation in an Apple Mail mailbox.
When a message window is open, Mail does not provide a means to move to the next message without doing this little dance:
1. close message window 2. press arrow key to navigate to next message 3. press Return
These have been combined into a script (below), but it navigates to the next unread message. I want to navigate to the next message, regardless read OR unread.
Any help getting me pointed in the right direction will be gratefully appreciated.
Thanks, Dave
---- begin script ---- tell application "Mail" to try if (count of windows) > 1 then tell window 1 to close tell message viewer 1 to set selected messages to {first message of beginning of (get selected mailboxes) whose read status is false} tell message viewer 1 to open selected messages end if on error beep end try ---- end script ----
Mail 4.6
2011 Mini 2.7 GHz dual i7 / 16 GB / 250 GB / 750 GB OS X 10.6.8 Snow Leopard
|