Dismissing Dialog Box
Dismissing Dialog Box
- Subject: Dismissing Dialog Box
- From: "David Walsh" <email@hidden>
- Date: Wed, 4 Apr 2001 08:01:08 -0600
I wrote the script below to run on a machine with two hard drives.
The user wanted the second hard drive to be unmounted on start-up.
The problem is that a dialog box pops up asking if the user
if they want to unmount the hard drive (default button OK).
I have tried MouseClick (Sandi's Additions) but
it does not seem to work the way I have used it.
Hope someone can help me on this.
tell application "Finder"
set somelist to list disks
if "Your Disk" is in somelist then
set thisdisk to "Your Disk"
end if
put away item thisdisk
end tell
MouseClick At {1106, 815}