Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Scripts from Sal at Apple...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Scripts from Sal at Apple...
Authored by: ether on Jan 20, '04 04:41:02PM
combining Sal's hint, the diagnosis of the single-message bug, and the original hint, produces the following, which seems to work with one or more unread messages, and preserve the speedup of Sal's hint. The obvious parallel changes work for the 'flagged' case.

try
	tell application "Mail"
		activate
		tell the front message viewer
			set unReadMsgs to every message whose read status is false
			set properties to {visible messages:unReadMsgs}
		end tell
	end tell
on error error_message
	beep
	display dialog "No unread messages: " & return & return & error_message buttons {"OK"} default button 1
end try


[ Reply to This | # ]