Nerico

Help using Applescript to change file names

Discussion created by Nerico on Aug 19, 2013
Latest reply on Aug 20, 2013 by sporobolus

I have a folder full of pictures that need to be renamed. They are currently named using the student's last name but should instead be named using first initial and then last name. I have all the student's names on a table in FM. The basic AppleScript would look like this

 

"tell application "Finder"

set the name of file "Abrams.jpg" of folder "2017_StudentPictures" to "A Abrams.JPG"

end tell"

 

How do I format it in FM to use the data from the current record?

Outcomes