Renaming files/folders
Renaming files/folders
- Subject: Renaming files/folders
- From: Ray Phillips <email@hidden>
- Date: Wed, 5 Sep 2001 16:31:30 +1000
Dear AppleScripters:
I've written a script for a droplet which alters the names of any files and
folders (and their contents) which are dragged onto it so the become valid
for a FAT file system. (It removes any trailing spaces and periods, and
replaces any of these characters \ / * ? \ " < > | with '-'.)
I believe my algorithm and execution of it are correct, and the script does
work for the trivial tests I've done. The real task I had in mind was to
drag a folder containing around 1200 files/folders which needed to be
renamed onto it. I tried that and after it had been running for a couple
of days (on a PM 7200/120 running Mac OS 9) I stopped it and found that two
hundred or so had been changed. I don't know if the script had hung up or
was just running very slowly.
The point of this message is just to ask if this is a reasonable task to
request of AppleScript, and to see if anyone could suggest how its speed
might be increased. If it's of interest I could post the script to the
list--it's about 200 lines long.
Oh, and is there any way to add Find and Replace to Script Editor's Edit
menu? I suppose not :(
Ray