• 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: Unique Identifier for Disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unique Identifier for Disk


  • Subject: Re: Unique Identifier for Disk
  • From: "John C. Welch" <email@hidden>
  • Date: Wed, 28 Apr 2004 10:37:02 -0500

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.

If you want to include network volumes, you're kinda SOL. System events has
an ID flag that works with Network volumes, but it changes from mount to
mount.

I think that I may be putting in a feature request for UUID support in the
system events or Finder dictionaries, and some way to do the same for
Network mounts too. Having to use hfs.util for this is inelegant.

john

--
"95% of everyone you meet will be a moron. This is usually proven by looking
in the mirror each morning."
John C. Welch
_______________________________________________
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.


References: 
 >Unique Identifier for Disk (From: Jeffrey Berman <email@hidden>)

  • Prev by Date: Re: script needed to force shutdown w/o any prompts/interference
  • Next by Date: Re: Using Applescript to save a text file?
  • Previous by thread: Unique Identifier for Disk
  • Next by thread: Re: Unique Identifier for Disk
  • Index(es):
    • Date
    • Thread