Eingang neuer mails über applescript überprüfen!

nicht ganz, war noch ein kleiner buck drin.. :)

PHP:
on idle
	tell application "Mail"
		check for new mail
		delay 15
		
		if (unread count in inbox) is greater than 0 then
			tell application "PowerMateDriver"
				get pulse always
				set pulse always to true
				get pulse rate
				set pulse rate to 7
				
			end tell
		end if
		
		if (unread count in inbox) is 0 then
			tell application "PowerMateDriver"
				get pulse always
				set pulse always to false
				
			end tell
		end if
	end tell
	
	return 60
end idle

Funktioniert perfekt! Ich danke euch!! und jetzt rennt alle schnell zu gravis und kauft euch von eurem weihnachtsgeld einen powermate! :) Frohes Fest und vielen Dank!
 
Zuletzt bearbeitet:
was war denn falsch? meinst du etwa die pulserate? kopfkratz
sonst sehe icha uf anhieb nix anderes...

naja, wenn ich mal im lotto gewinne kaufe ich mir auch einen ;)

auf jeden fall wünsche ich dir noch viel spass und ebenfalls ein frohes fest!
 
Zurück
Oben Unten