Re: Newbie question - creating non-blocking alerts
Re: Newbie question - creating non-blocking alerts
- Subject: Re: Newbie question - creating non-blocking alerts
- From: "email@hidden" <email@hidden>
- Date: Sat, 05 May 2001 06:45:39 -0500
on 5/5/2001 1:43 AM, David Shorter at email@hidden wrote:
>
Hello all
>
I've created a script which launches at atart-up (along with other things) and
>
needs to flash up a non-blocking alert (in front of other eopn windows) if the
>
user should know about something - like Eudora's "You have new mail message".
>
Is there any way of doing this in Applescript? Have looked in the ScriptEditor
>
and Finder directories, also the ref manual, but can't see anything. Could use
>
a "Say" command of course but the user might not have audio turned on...
Try Akua Sweets "notify" command:
notify : Post or remove a notification. (Using this also clears any dangling
notifications from scripts that ended without a corresponding "is done"
call).
notify [ integer] -- The notification to remove (if any).
[with alert string] -- The string you wish to have posted in an
immediate alert.
[with sound sound] -- A sound loaded from a file.
[with sound named string] -- The name of the sound you wish to play.
[with icon small integer] -- The number of the icon you wish to
flash in the menu. Use 150 for the default script application icon.
[markation boolean] -- Mark app in menu.
[removal boolean] -- Remove the notification.
Result : integer -- The notification. Don't change it! You must use the
"with removal" option at a later time to remove the notification from the
queue.
JR