Re: Multiple disks with the same name
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