Multiple disks with the same name
Multiple disks with the same name
- Subject: Multiple disks with the same name
- From: Ryan Hofschneider <email@hidden>
- Date: Mon, 29 Oct 2001 02:00:26 -0800
Howdy all:
Let's say I have two disks (A and B) that are mounted and have the same
name. Disk A is the startup disk.
Is there an elegant way of writing AppleScript so that a file reference
on disk B isn't resolved as if it existed on disk A?
For example, if I'm executing something like this:
set dir to (folder of the front window)
if (class of dir is alias file) then
....
and the front window is showing a folder on disk B, I will get an error
saying "can't get class..." since it is trying to resolve the file
reference as if it existed on disk A, rather than disk B.
Thanks,
Ryan