I am missing something here to add a comment to a file / folder.
Please help me to figure the missing thing out:
tell application "Finder"
set filePath to "Macintosh HD:Users:anoopvaidya:Desktop:2.png"
if exists file filePath then
--display alert "file:" & filePath
set comment of filePath to "hi boy"
end if
end tell
It throws the following error: