Add File Path as Spotlight Comment to multiple files using Automator and AppleScript
Hello,
I would like to add the current directory path of files as a spotlight comment embedded into each one, so when I move them I know where they where originally.
I'm trying to use the script bellow:
on run {input, parameters}
tell application "Finder"
repeat with thisfile in input
set theComment to POSIX path of thisfile
set comment of (thisfile as alias) to theComment
return input
end tell
end run
I keep getting a sintax error: Expected "end", but found "end tell".
Could someone please help me?
MacBook Pro (Retina, 13-inch, Mid 2014), OS X El Capitan (10.11.5)