我在这里遗漏了一些文件/文件夹的注释。
请帮我弄清楚丢失的东西:
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
它会抛出以下错误:
答案 0 :(得分:2)
set comment of (filePath as alias) to "hi boy"