Can anyone tell me why this does not work:
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
on open dropped_items
tell application "Finder"
repeat with eachItem in dropped_items
set label index of eachItem to 6
end repeat
end tell
end open
Error I get is:
Finder got an error: Can’t set label index of file “Macintosh HD:Users:thisUser:Documents:Recover.log” to 6.