How to reference Macintosh HD in file path
How do I reference the Macintosh HD in a file path, in case it is renamed?
I tried:
myFile = File ('Macintosh HD/myTxt.txt');
But nothing happens, when I write to the file.
How do I reference the Macintosh HD in a file path, in case it is renamed?
I tried:
myFile = File ('Macintosh HD/myTxt.txt');
But nothing happens, when I write to the file.
Okay, I got it. The system disk is always /, other disks appear in /Volumes, removables get named on mounting.
I Learned Something Today™: disk ops on a Mac are far less a hassle than they were on my ol' Windows machine!
As in "Wait: I got my iPod plugged in, and that's got a J: assigned, so .. this USB stick I plug in next to the one that was already there should be "K:", right?" Windows: "Nah, I tell you it's G: and throw out one of the removable hard disks. Ha ha ha!"
It's the UNIX filesystem, and it is much easier (for me at least) then winodws. As a quick side note, root is always /, but it also is alised in "/Volumes/Macintosh HD/", or whatever your main HD name is. As Mark said, it's realy a bad idea to have more then one volume with the same name, as the internal FS mappings may not mirror the way that InDesign resolves the URI.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.