All,
We recently placed a new Mac Mini 10.6.x as an application server. This Mac
Mini has two necessary applications that run on it, and two necessary mounts
from other servers on the network. We have an AppleScript that runs at
startup on the Mini, (and remains active) which mounts these two volumes and
starts the applications. It loops every few minutes and checks to see if
either application is not running or if either volume is missing, and if so,
it restarts the missing application or remounts the missing volume.
Testing of the script (by just dismounting a volume) shows that it works
well, HOWEVER, in the real world, when one of the servers hosting the
mounted volumes restarts, a dialog window appears on the Mac Mini saying
that the volume has been disconnected. This dialog window, waiting for an
'OK' response, seems to suspend the execution of the AppleScript, so it does
not automatically remount the missing volume. As soon as I clear the dialog
window on the Mini (by hitting OK) the script will remount the missing
volume as it should.
I have not found a solution to clearing or closing this dialog window in
AppleScript. I think I need something like this:
if (dialog window exists) = true then
(activate dialog window)
(keystroke return)
end if
Does anyone know how to do this? Thanks!
--
Karl Schoenefeld | IT Department
SGS St Louis | 1035 Hanley Industrial Court | St Louis, MO 63144
Direct: 314-918-3126 | Cell: 314-680-0359