[X-Unix] Calling Applescript alarm from script

Bill White billwhite at mac.com
Fri Jan 25 08:18:35 PST 2008


On 1/25/08 10:18 AM, TjL <luomat at gmail.com> wrote:

> However, what I would really like to do is have it pop up some kind of
> alert window on my Mac with some kind of sound which keeps repeating
> until I acknowledge the window.

This would do the persistent alarm part:

repeat
    
    tell application (path to frontmost application as Unicode text)
        
        display dialog "School is closed [change message to suit]" buttons
"Cancel" default button 1 giving up after 3  -- this should all be on the
same line
        
        beep 3
        
    end tell
    
end repeat

HTH,

Bill




More information about the X-Unix mailing list