Adding a suffix to a file using applescript
I am using a droplet/application to add a suffix to my filenames. i want it to add the word "_THUMBNAIL" before the file extension. Right now it is leaving the file extension, adding _THUMBNAIL and adding the extension again. I know part of it has to do with the "& name extension of aFile" line, but that's the only way i could get it to have the extension after the added text. Here is the script below:
on opensomeFiles
tell application "Finder"
set theList to someFiles
repeat with aFile in someFiles
set fName to (name of (info foraFile)) & "_THUMBNAIL" & "." & name extension of aFile
set name of aFile to fName
end repeat
end tell
end open
Any help to get this sorted would be great!
Thank you in advance.