Thank you for your patience in advance. I have never used script editor and I have no programing skills what-so-ever! I would really like to make this work though. I copy and pasted your script above exactly how it was written in script editor:
tell application "Finder" to set this_folder to get every file of folder (choose folder with prompt "Select folder containing files to rename:")
set countVar to 0
repeat while countVar < (count of this_folder)
set countVar to countVar + 1
set this_item to item countVar of this_folder
nameFile(this_item)
end repeat
return (countVar & " Files Randomly Renamed.") as string
on nameFile(this_item)
try
tell application "Finder" to set name of this_item to ("img_" & (random number from 10000000 to 99999999) & "." & name extension of this_item) as string
on error
nameFile(this_item)
end try
return true
end nameFile
I saved it and then ran it and nothing happened. If I have a folder named Slideshow where the photos are saved that I want renamed. Do I have to indicate that folder name in the script somewhere? I am sorry, I am asking such basic questions and appreciate any help you can provide.
Dayle