• 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: why won't force-eject work in a script, but will from command line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why won't force-eject work in a script, but will from command line?


  • Subject: Re: why won't force-eject work in a script, but will from command line?
  • From: Michael Terry <email@hidden>
  • Date: Thu, 03 Jul 2003 11:52:29 -0700

On 7/3/03 3:06 AM, "Charles Arthur" <email@hidden> wrote:

> I have a portable Firewire disk called "LaCie" which, for inexplicable
> reasons, won't let itself be ejected from the Finder at the end of the day
> when I want to take it home. I get the message "The disk is in use".

Does this work on your disk?:

on unmount(diskName)
try
do shell script "/sbin/mount | grep " & quoted form of diskName
do shell script "/usr/sbin/disktool -u " & result's second word
on error number 1
error diskName & " : Disk not found." number 11112
end try
end unmount


Mike
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: why won't force-eject work in a script, but will from command line?
      • From: plumber <email@hidden>
References: 
 >why won't force-eject work in a script, but will from command line? (From: Charles Arthur <email@hidden>)

  • Prev by Date: Re: How do I explore Applescript objects???
  • Next by Date: Re: Faster List Checking
  • Previous by thread: why won't force-eject work in a script, but will from command line?
  • Next by thread: Re: why won't force-eject work in a script, but will from command line?
  • Index(es):
    • Date
    • Thread