12-01-2011, 07:10 AM
Oh!
And this script will rename every item in a folder.
And this script will rename every item in a folder.
set the_folder to (choose folder)
tell applicationFinderset 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.txtthen
set name of (item i of the_files) to the_name &.txtend if
end repeat
end tell