Re: Resetting Hard Drive Names
Re: Resetting Hard Drive Names
- Subject: Re: Resetting Hard Drive Names
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 10 Jan 2002 16:41:04 -0500
- Organization: [very little]
>
Date: Thu, 10 Jan 2002 10:50:09 -0500
>
Subject: Re: Resetting Hard Drive Names
>
From: "Andrew W. Johnson" <email@hidden>
>
To: <email@hidden>
>
>
Hello,
>
>
(Please refer to my other post, as it was long and I don't want taking up
>
space in this reply.)
>
>
I had done what you said, I apologize if I did not explain that step. When
>
I ported the script over to the clone lab machine, I re-wrote the code to
>
match the volumes on that computer (see my code in my last post), and then
>
compiled it. Every time I change the name of the "Video HD" volume, it
>
renames the "Local HD" volume and leaves the "Video HD" partition alone.
>
>
Even if I change the "Local HD" name, and the "Video HD" name to some
>
gibberish, by order of execution of the code, it changes the "Local HD" back
>
to "Local HD", then changes "Local HD" to "Video HD" leaving the actual
>
"Video HD" alone to whatever gibberish I gave it.
>
>
If I change all my Volume names to gibberish, it does the same thing, it
>
changes the "Local HD" back to "Local HD", then changes "Local HD" to "Video
>
HD" leaving the actual "Video HD" alone to whatever gibberish I gave it,
>
then changes the "Documents" and "Admin" volumes back to what they are
>
supposed to be.
>
>
It is most Bizarre.
>
>
The same script set up on my computer with all its drives and partitions
>
(five total) works fine (when the script is compiled and modified to work on
>
my machine that is.)
>
>
Thanks,
>
>
Andrew W. Johnson
>
Assistant Macintosh Systems Administrator
>
Instructional Computing
>
080 Student Union
>
Stony Brook, NY 11794-3200
>
email@hidden
>
>
>
>
> The first time you run this script on any machine it should be newly
>
> compiled on that machine and the names of the volumes must match the
>
> volume names in the four properties at the top of the script. The way
>
> this script works, when it is compiled the aliases are replaced
>
> internally by absolute identifiers for the volumes that will find them
>
> even if they are renamed. By running a copy compiled on another machine
>
> you may not have those aliases pointing to the correct volumes or any
>
> volumes at all.
>
>
>
> Marc K. Myers <email@hidden>
I hate it when computers refuse to behave rationally! I've had similar
experiences where a script seems to get "stuck" on an alias even though
it has been recompiled. I have no explanation for why the following
technique might work except that it has worked for me in the past.
Extract the code from the script by selecting it all and doing a Copy.
Close the script and delete its file. Create a new script and paste in
the code. Modify the file paths in the properties to match the actual
volume names, if necessary. Compile it and see if the problem is resolved.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[1/10/02 4:39:07 PM]