• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Renaming files/folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: Jon's Commands
  • Next by Date: Re: Jon's Commands
  • Previous by thread: Re: Renaming files/folders
  • Next by thread: Re: Renaming files/folders
  • Index(es):
    • Date
    • Thread