Re: Ejecting An Image Disk
Re: Ejecting An Image Disk
- Subject: Re: Ejecting An Image Disk
- From: Axel Luttgens <email@hidden>
- Date: Thu, 30 Oct 2008 00:35:37 +0100
Le 28 oct. 08 à 21:51, Luther Fuller a écrit :
I have found a fix for the problem, but not yet an explanation.
Modify the ejectImageDisk handler like this ...
on ejectImageDisk(mountPoint)
tell application "Finder"
do shell script "hdiutil detach " & mountPoint & " -force"
end tell
end ejectImageDisk ----------------------------
I now get instant ejection. Every time. But why do I need to tell
Finder?
I've never had to enclose 'do shell script ...' in any kind of tell
block.
Something strange is happening here that needs explaining.
Hello Luther,
I haven't yet tried anything wrt your precise problem here.
Before going further, could you provide us with some more info about
the context? I mean, for example, why not just eject the mounted
disk(s) either manually or with the help of an eject command targeted
to the Finder?
Axel
_______________________________________________
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