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: SCID on Mar 16, '04 12:00:55PM
I do the same thing but use Mail.app's filters to pulse the PowerMate. I have filter that fires when ever an email is recieved from some one in my Address Book Group "Clients" and it fires the following appleScript
tell application "PowerMateDriver"
	get pulse always
	set pulse always to true
	get pulse rate
	set pulse rate to pulse rate + 1
end tell
So the faster the PowerMate is pulsing the more mail I have from clients. The I have another script in mail's script menu that resets the powermate to a low pulse rate and turns off pulsing. By the way I have a variant on this script that gets fired when I get mail from my wife that makes it flicker like a nut-case (the powermate not the wife) ;) Sam D ps apple script can check for a process running
tell application "System Events"
	if exists process "Mail" then
		display dialog "Mail Running"
	end if
end tell


[ Reply to This | # ]
New mail notification using the PowerMate
Authored by: superuser on Mar 16, '04 03:32:46PM

@ SCID:
>> Then I have another script in mail's script menu that resets the powermate to a low pulse rate and turns off pulsing.<<

I would like to make the PowerMate puls - 1 (one less) by selecting (and thus flag it 'read') an unread mail.
In other words, when I browse trough my inbox and have selected/read every message, the PowerMate stop pulsing.
Is this possible?

cheers



[ Reply to This | # ]