Re: Ejecting An Image Disk
Re: Ejecting An Image Disk
- Subject: Re: Ejecting An Image Disk
- From: Luther Fuller <email@hidden>
- Date: Fri, 31 Oct 2008 09:29:23 -0500
On Oct 31, 2008, at 8:26 AM, Axel Luttgens wrote:
do shell script "umount -f /dev/disk1s2; hdiutil detach /dev/disk1"
This illustrates a problem with the hdiutil man page. According to the
man page, there is a difference between 'umount' and 'detach', but
it's not clear, at least to me, exactly what the difference is. I
think I will stick with telling the Finder to detach, since it's the
simplest code.
I have searched for info on hdiutil having illustrative techniques,
but found none. Usually, I just arrive at the man page again. I need a
tutorial on hdiutil which presents and explains technique.
The question I really need solved is: Why does 'hdiutil imageinfo ...'
refuse to return a disk image file's meta-data if the file is
encrypted or it's disk is mounted? This seems buggy to me, but I'm not
an expert. The reason it seems buggy is its illogic ... the meta-data
for a disk image file contains the information
Properties:
Encrypted: false (or true)
but if Encrypted = true, you can't get the meta-data. And you can't
get the meta-data if the disk is mounted, either. You can workaround
this, but you have to eject the disk first. Until I get a clear
explanation of this behavior ... It's a bug!
_______________________________________________
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