Setting Comments in OSX

I have a script that renames a file from one hting to something else

Is there a way i can capture the original name in the comments field

info for doesn’t show the comments how do i get them?


set theFile to choose file
tell application “Finder”
set comment of theFile to name of theFile
set name of theFile to “Some New File Name”
end tell

I was rushing and not paying attention
i had a (s) on the end of my comment and it was showing as a variable (comments) duh :slight_smile:

It also has to be in a finder tell statement