Re: why won't force-eject work in a script, but will from command line?
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.