MacNN Forums (http://forums.macnn.com/)
-   Classic Macs and Mac OS (http://forums.macnn.com/classic-macs-and-mac-os/)
-   -   renaming lots of files (http://forums.macnn.com/64/classic-macs-and-mac-os/46014/renaming-lots-of-files/)

 
BWSchultz May 30, 2001 06:15 PM
renaming lots of files
Hey, does anyone know a good way to rename a large number of files? But here's the catch: For free. I see this program called "A Better Finder Rename" but if I can avoid the $15 registration fee, that would be nice. So I'm looking for something reliable that is freeware. Any suggestions?
 
AppleScript May 30, 2001 07:26 PM
AppleScript can be used to batch rename a large number of files if there is some consistent name you want the files to be renamed to. For example, to add an index number to files:
tell application "Finder"
repeat with filenum from 1 to (count folder "Rename folder")
set the name of (item filenum of folder "Rename folder") to (name of item filenum of folder "Rename folder") & " " & filenum
end repeat
end tell

Change "Rename folder" to the name of the enclosing folder(and path, if it is not on the desktop.) The last two parameters in the third line(" " and filenum) can be replaced by the text you want added.

(38)
 
BWSchultz May 30, 2001 08:17 PM
I have never used apple script before so your message was a tad confusing. However, I was able to make it work. Unfortuneately, I can't figure out how to make it go 01,02, 03, 04, 05, 06, 07, 08, 09, 10 so that the files stay in the correct order. I'd only have to change file names for 9 files if the total was under 99. However, none would be correct for over 100 files, which I have several of, because they need to go 001, 002, etc.
 
AppleScript May 31, 2001 12:48 AM
This script will do the job you wanted for up to 999 files. As before, the folder used can be changed.

tell application "Finder"
repeat with filenum from 1 to (count folder "Rename folder")
set filetext to filenum as text
if filenum > 100 then
if (count filetext) = 1 then set filetext to "00" & filetext
if (count filetext) = 2 then set filetext to "0" & filetext
end if
if filenum > 10 and filenum < 100 then
if (count filetext) = 1 then set filetext to "0" & filetext
end if
set the name of (item filenum of folder "Rename folder") to (name of item filenum of folder "Rename folder") & " " & filetext
end repeat
end tell

(39)
 
SunSeeker May 31, 2001 06:03 AM
I prefer abfr, which you already mentioned. It is very powerful, you can do 9 files at a time until you register and you just select your files, ctrl-click and select rename from the menu, try it.

File buddy can also do this, but for free (sort of, it should be paid for, but works anyway) and in a more limited way. With file buddy you can't specify how the files will be ordered, I assume it is done by name.
There are several other things abfr does that file buddy doesn't.

File Buddy Screen Shots;
One, Two, Three


edit:images too big for to show in page directly

------------------
http://homepage.mac.com/youngweb/ss.gif Sun'

The Creative Lounge
???

[This message has been edited by SunSeeker (edited 05-31-2001).]
 
STAT Jun 2, 2001 07:47 PM
Check out Quick Rename at www.download.com

------------------
Sincerely,
STAT 007
stat007@aol.com
 
All times are GMT -4. The time now is 10:47 PM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2016, vBulletin Solutions, Inc.


Content Relevant URLs by vBSEO 3.3.2