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


Click here to return to the 'Speak new Mail notifications via a set of scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Speak new Mail notifications via a set of scripts
Authored by: randydarden on Mar 11, '05 11:52:13AM

Looks like I used an Apple sample "rule action" script for Mail.. I simply replaced the guts with these lines:

try
	set theText to "New mail:" & return & "From: " & theSender & return & "Subject: " & theSubject
	
	-- add an extra newline if multiple messages are to be displayed
	if numberOfMessages > 1 then
		set theText to theText & return
	end if
	
	tell application "LanOSD"
		message kind "message" text theText quadrant 8 icon "email" fade delay "8"
	end tell
	
	set theText to ""
end try

And added a Mail rule to call this AppleScript when receiving new message from certain accounts.

One drawback is when you download lots of messages from an account, Mail will slow to a crawl and LanOSD's indications will fill up the screen. You might avoid this with another rule.



[ Reply to This | # ]

LanOSD script
Authored by: randydarden on Mar 11, '05 11:53:55AM

Oops, that was supposed to be in reply to those asking for my LanOSD Mail script.

Also, I forgot to mention that the script I started with is here:
"/Library/Scripts/Mail Scripts/Rule Actions/Sample Rule Action Script.scpt"



[ Reply to This | # ]