Re: Mount Point to Alias
Re: Mount Point to Alias
- Subject: Re: Mount Point to Alias
- From: Luther Fuller <email@hidden>
- Date: Wed, 12 Aug 2009 13:00:19 -0500
On Aug 12, 2009, at 12:15 PM, Eric Taylor wrote: Or why don't you just access it by volume name? There is no guarantee it will always be /dev/disk1. What if there is a USB stick that got mounted first, for example? I believe it would then come in as /dev/disk2.
I believe that even through Snow Leopard, disks with the exact same Finder volume name get a mount point in /Volumes that is the name plus a space and a unique number. So odds are that it will be called "Roger 1", in which case you can access it like so...
For the past hour or so, I've been looking at more details from 'hdiutil info', and it seems you are correct. Once I get the disk name as volName = "/Volumes/Roger 1", I can then get an alias for the Finder by using (POSIX file volName) as alias So far, it distinguishes correctly between the HD partition named "Roger" and the image disk named "Roger".
I also presume that diskutil would return the same volume names and would work as well as hdiutil. I was already experimenting with an old handler using hdiutil.
|
_______________________________________________
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