Unmounting a Server Disk
Unmounting a Server Disk
- Subject: Unmounting a Server Disk
- From: Eric Sackett <email@hidden>
- Date: Tue, 17 Jul 2001 17:33:31 -0400
I'm trying to unmount a disk in the Finder by AppleScript. The only way I
see is to use the "put away" command. I'm using Mac OS 9.1 and AS 1.6.
So I have:
tell application "Finder"
if (exists disk "Shared") then
put away disk "Shared" without asking
end if
end tell
This works great when run from Script Editor, but when run from OSA Menu as
a compiled script, I get an error that the AppleEvent timed out. Once I
dismiss the dialog, the disk is removed from the desktop.
It's as if the Finder is waiting for something after it puts away the disk.
It doesn't happen, so it times out even though it has already put away the
disk.
Any ideas? TIA.
--
Eric Sackett
Dennis & Sackett Design, Inc.