Re: HD name change for X
Re: HD name change for X
- Subject: Re: HD name change for X
- From: Michelle Steiner <email@hidden>
- Date: Thu, 17 Jan 2002 15:55:04 -0700
On 1/17/02 9:15 AM, nino <email@hidden> quoted:
>
> Once I do come up with the new name, is there an Applescript method of
>
> quickly changing my existing scripts which have "Mac Hard Drive" as part of
>
> filepaths, etc., so that they will incorporate the new name?
This is a good time to point out (unless someone else has already pointed
it; in which case it's redundant) that it would be good to declare the
disk name as a global variable at the beginning of the script. That way,
there would be only one place where it needs to be entered.
Maybe even better is to store it as a property, and have the user choose
the disk the first time the script is run on that disk. Then the name
won't have to be entered in the script at all.
property diskname : null
try
alias diskname
on error
set diskname to (choose folder)
end try
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------