• 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: Multiple disks with the same name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple disks with the same name


  • Subject: Re: Multiple disks with the same name
  • From: Jon Pugh <email@hidden>
  • Date: Mon, 29 Oct 2001 21:09:24 -0800

At 11:17 PM -0500 10/29/2001, email@hidden wrote:
>Hear me now and believe me later - give every volume a unique name.

Yah. The truth is tough, but so must you be.

The trick in code is to deal with the vRefNum of the disk you want, because they will each have a different vRefNum. These numbers begin at -1 and proceed backwards, and are conveniently exposed as the id of the disk in the Finder.

So, if you must, use the id to differentiate disks in AppleScript, and checking all the disks with the same name for an existing file is a tolerable way of dealing with it. Using an alias to the disk and/or file is more sensible.

Jon


References: 
 >Re: Multiple disks with the same name (From: email@hidden)

  • Prev by Date: Re: Multiple disks with the same name
  • Next by Date: Re: Gaining control of a Scripted Application
  • Previous by thread: Re: Multiple disks with the same name
  • Next by thread: Put Away command?
  • Index(es):
    • Date
    • Thread