I had a main system drive on my iMac named "Macintosh HD" and wrote my scripts to reference files on that drive. For instance, to get to my library directory, I had "Macintosh HD:Users:me:Documents:Dev:AppleScript:" as the full path.
The problem is that I'm having drive issues and need to replace my drive before it goes bad. To keep track, I cloned my original system drive ("Macintosh HD") to "System Temp," which is connected by USB. I can afford to use this drive for a few days, but need to return it to a server as soon as I can. Early this week I'll be getting a new drive that will be the long term replacement drive, named, "System."
I don't want to name each drive "Macintosh HD" because that makes it hard for me to keep track of them, but I'd like to keep the scripts working throughout the process.
How can I, in Applescript, specify a pathname to a drive without using the HD name? If it's the main HD, what is the equivalent of the Linux form of "/" for the root file system, so I'd use "/home/me" to get to my home directory? Is there some way to do something like "::Users:me" instead? I just want to be able to tell Applescript something like, "This is on the main system drive," or, "Use the boot drive."
I tried a lot of possible alternatives and none worked.