re: Unmount network volume
re: Unmount network volume
- Subject: re: Unmount network volume
- From: Nigel Garvey <email@hidden>
- Date: Fri, 26 Jan 2001 12:05:46 +0000
"Vince Jelenic" wrote on Thu, 25 Jan 2001 20:07:23 -0500:
>
tell application "Finder"
>
put away (every disk whose kind is "shared disk")
>
end tell
... and Brian Dichter wrote on Thu, 25 Jan 2001 18:17:37 -0600:
>
put away disk "SomeVolumeName"
(Presumably in a Finder tell block)
Having just acquired a second Mac, I've been trying to sort out something
like this for myself. I find that 'put away' works perfectly when the
scripts are run from Script Editor, but times out when they're run from
OSA Menu. (The disk does however unmount when I OK the error dialog.)
On the other hand, imitating the manual process unmounts the disk
*immediately* with no apparent problems:
tell application "Finder"
activate
select (every disk whose kind is "shared disk")
TypeText "y" with Command -- needs Sandi's Additions
end tell
(Thanks to Vince for the "shared disk" approach)
Does anyone know why this should be? The connection's via AppleTalk over
an ethernet link.
NG