Re: Eject in Leopard (Jay Louvion)
Re: Eject in Leopard (Jay Louvion)
- Subject: Re: Eject in Leopard (Jay Louvion)
- From: Andrew <email@hidden>
- Date: Sun, 11 Nov 2007 16:14:07 -0500
- Thread-topic: Eject in Leopard (Jay Louvion)
I should have been clearer in my initial response...
I used "eject disk" in many scripts to eject drives until roughly the 10.4.9
update (maybe 10.4.7... I don't remember exactly), when those scripts
stopped working.
That's when I switched to the shell script as quoted below.
After reading comments by Claus Gerhardt today, I tried using "eject disk"
on different kinds of drives/volumes.
In my tests, "eject disk" *DOES* work on USB flash drives and with flash
media mounted via USB reader in Leopard. It also works with network-volumes
and optical media.
It *DOESN'T* work on internal PATA and SATA hard drives, nor does it work
with eSATA drives running off of a card. The event log shows no error. It
just doesn't unmount those volumes.
Interesting results.
Perhaps Christopher Nebel can comment on why "eject" doesn't always work?
Anyway, since there is variation in the results, I'm going to continue using
the always-works-shell-script... at least until someone shows me something
better.
-Andrew Moses
> My scripts that use "Eject" stopped working in Tiger.
>
> I now use this code, which works in Tiger and Leopard:
>
> do shell script "/usr/sbin/diskutil eject /Volumes/[VOLUME NAME]"
>
> -Andrew Moses
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden