• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Eject in Leopard (Jay Louvion)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Eject in Leopard (Jay Louvion)
      • From: Paul Berkowitz <email@hidden>
    • Re: Eject in Leopard (Jay Louvion)
      • From: Neil Laubenthal <email@hidden>
References: 
 >Re: Eject in Leopard (Jay Louvion) (From: Andrew <email@hidden>)

  • Prev by Date: Re: Eject in Leopard
  • Next by Date: Re: Eject in Leopard (Jay Louvion)
  • Previous by thread: Anyone else think that Applescript in Leopard no longer works with Filemaker 5.5
  • Next by thread: Re: Eject in Leopard (Jay Louvion)
  • Index(es):
    • Date
    • Thread