• 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: Ejecting An Image Disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ejecting An Image Disk


  • Subject: Re: Ejecting An Image Disk
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 3 Nov 2008 09:56:50 -0600

On Oct 28, 2008, at 3:51 PM, I wrote:
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.

And I've just noticed something else that may be related. I have a script that uses 'drutil' to eject optical media from a drive. When I used it this morning, I noticed a long delay until the disk ejected.
I got much better response after I modified the script like this ...


	tell application "Finder"
		do shell script "drutil -drive " & brnNr & " eject"
	end tell

_______________________________________________
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
  • Prev by Date: Install in Dock
  • Next by Date: Re: Print to PDF work flow
  • Previous by thread: Re: Ejecting An Image Disk
  • Next by thread: Print to PDF work flow
  • Index(es):
    • Date
    • Thread