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

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
  • Resent-date: Mon, 29 Oct 2001 09:12:54 -0800
  • Resent-from: Ryan Hofschneider <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

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


  • Prev by Date: Put Away command?
  • Next by Date: Use a variable to name another variable
  • Previous by thread: Multiple disks with the same name
  • Next by thread: Re: Multiple disks with the same name
  • Index(es):
    • Date
    • Thread