This seems like a rather easy task, but I've searched with Google through this forum and others, and have yet to find a solution.
I want to rename the files I've selected in Finder, and have successfully found the replacement text, but no matter what I do, i can't make applescript rename the file. I've gotten the POSIX path, and use the text
to do the renaming, but I get nothing. Do I need to include the path and extension? In this case, pathItem is the path to the file, as in Macintosh HD/Users/.../Desktop/... and renameFile is exactly the same, except for the new name.
What can I do differently?
I want to rename the files I've selected in Finder, and have successfully found the replacement text, but no matter what I do, i can't make applescript rename the file. I've gotten the POSIX path, and use the text
Code:
set name of pathItem to renameFile
What can I do differently?