Re: Mail.app

[prev] [thread] [next] [lurker] [Date index for 2005/10/13]

From: Peter da Silva
Subject: Re: Mail.app
Date: 05:58 on 13 Oct 2005
>         There is no decent keyboard navigation for common operations
>         like 'Go to next unread message'.  I understand that if there
>         was a menu item, this is something I could fix myself.  I know
>         that all Mac users are mouse-happy, but for things like email,
>         I *need* a keyboard.  And I need it to be able to do most
>         operations.  So much for Mail.app.

Save this as a compiled .scpt file called ... (wait for it)

"~/Library/Stripts/Mail Scripts/NextUnreadMessage___ctl-n.scpt"

try
	tell application "Mail"
		activate
		tell the front message viewer
			set unreadMessages to (the messages whose read status is false) as 
list
			if (count of unreadMessages) is not 0 then
				set selected messages to {the first item of unreadMessages}
			else
				beep
			end if
		end tell
	end tell
on error error_message
	beep
	display dialog "Next unread message: " & return & error_message 
buttons {"OK"} default button 1
end try

Doesn't that syntax make you think "what if Grace Hopper had been a 
contemporary of Steve Jobs"? I know it fills me with hate...

There's stuff above here

Generated at 08:00 on 13 Oct 2005 by mariachi 0.52