I have a bunch of files to rename from someone else that sit inside folders and subfolders, and would like to copy the path and file name to the Spotlight comment of each file before I do anything with them.
The script in answer to this question for adding the file name to the Spotlight comments works great, but I don't have the skills to modify it to include the path. I have tried replacing a few items with path or POSIX path in a meaningful way, but can't get it to work, nor do I find the commands elsewhere. Any help is appreciated.
tell item i to try
block:set thePathname to POSIX path of i
/path/to/filename
vs. having both the qualified pathname and the filename separately.