when trying to run this applescript in apple script editor
"Expected “given”, “in”, “of”, expression, “with”, “without”, other parameter name, etc. but found unknown token.
really appreciate your help!
This is what i wrote:
set z to path to "/Users/joshmharris/Downloads"
tell application "Finder"
set dlsz to size of folder z
end tell
if dlsz is greater than 2.0E+9 then -- That's 2 gB. Set it for whatever you want
display notification “Your folder is massive!“ with title "Downloads Folder " subtitle (dlsz as text) & " Bytes" sound name "Sosumi"
end if
return dlsz