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


Click here to return to the 'New mail notification using the PowerMate' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
New mail notification using the PowerMate
Authored by: macevangelist on Mar 16, '04 11:52:02AM

try
	tell application "System Events" to if (exists process "Mail") is false then
		set theCount to 0
	else
		tell application "Mail" to set theCount to unread count of inbox
	end if
	
	if theCount > 0 then
		tell application "PowerMateDriver" to set pulse always to true
	else
		tell application "PowerMateDriver"
			set pulse always to false
			set brightness to 0
		end tell
	end if
end try


[ Reply to This | # ]