Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unique Identifier for Disk



On 4/28/04 10:37 AM, "John C. Welch" <email@hidden> wrote:

> On 4/26/04 6:33 AM, "Jeffrey Berman" <email@hidden> wrote:
>
>> Applications such as the Finder and System Events see partitioned volumes as
>> "disk" objects. Is there a unique identifier for a disk that is not the
>> startup disk and that would persist over restarts so that an AppleScript
>> script referring to the disk would work as expected even if the name of the
>> disk changes?
>
> If you only want local drives, then you can, but you have to parse the
> output of disktool so that you can use Mike's -k switch on hfs.util. Then
> compare UUIDs.

John:

At least on my system (OS X 10.2.8), the help text from the 'hfs.util'
command does not list a -k option and the command returns nothing when I use
it with a device file name. For example, the main partition of my startup
disk is associated with the device file "disk0s9" but the command:

/System/Library/Filesystems/hfs.fs/hfs.util -k disk0s9

does not return anything.

-Jeffrey Berman
_______________________________________________
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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.