Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you add file extensions to a bunch of files at once?
#21
Oh!

And this script will rename every item in a folder.

set the_folder to (choose folder)

tell application
Finder
set the_files to (every item of the_folder)
repeat with i from 1 to (count of the_files)
set the_name to (name of (item i of the_files))
if the_name does not end with
.txt
then
set name of (item i of the_files) to the_name &
.txt
end if
end repeat

end tell
Reply


Messages In This Thread
Re: How do you add file extensions to a bunch of files at once? - by Chakravartin - 12-01-2011, 07:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)