Re: Renaming files/folders
Re: Renaming files/folders
- Subject: Re: Renaming files/folders
- From: Michelle Steiner <email@hidden>
- Date: Wed, 5 Sep 2001 08:53:53 -0700
On 9/5/01 9:32 AM, Bob.Kalbaugh <email@hidden> wrote:
>
I'm not the original poster of this thread, but I also happen to be working
>
on a script that alters the names of files, so I tested your script because,
>
well, you always post great stuff. :-) At any rate I found that I needed to
>
make one slight change to get the script to work. The script kept passing
>
the handler the original nameToChange variable for some reason.
Yes, the lines of the form
change(NameToChange, "|")
should be
set NameToChange to change(NameToChange, "|")
I make that mistake all too often, and catch it in my testing, but I
didn't test this script.
Also, one further simplification, instead this at the end of the "change"
handler:
set the outstring to tempList as text
return the outstring
use this:
return tempList as text
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------