tell application "GrowlHelperApp"
set the allNotificationsList to {"kfrSync"}
set the enabledNotificationsList to {"kfrSync"}
register as application ¬
"kfrSync" all notifications allNotificationsList ¬
default notifications enabledNotificationsList ¬
icon of application "Script Editor"
-- Send a Notification...
notify with name ¬
"kfrSync" title ¬
"kfrSync" description ¬
"This is a test AppleScript notification." application name "kfrSync"
end tell
do shell script "sleep 2"
tell application "GrowlHelperApp"
notify with name ¬
"kfrSync" title ¬
"kfrSync2" description ¬
"Message 2" application name "kfrSync"
end tell
Diskussion:
kfrSync) muss immer stimmen, sonst wirds nicht angezeigt.
Im Install-Image von Growl, gibt es einen Ordner Extras, darin gibt es ein Install-Package growlnotify.
growlnotify -m "Start 1" -d 1 -s sleep 1 growlnotify -m "Start 2" -d 1 -s sleep 1 growlnotify -m "Start 3" -d 1 -s sleep 1 growlnotify -m "Start 2" -d 1 -s sleep 1 growlnotify -m "Start 1" -d 1 -s sleep 1 growlnotify -m "Fertig" -d 1
Erklärung:
-m die Message-d Growl-ID, sorgt dafür, dass alle Meldungen im selben Fenster landen (überschreibt alte Meldung)-s macht Fenster sticky, man kann es aber wegklicken-s gesetzt, daher verschwindet das Fenster nach Standard-Zeit