AppleScript: The Missing Manual
B.3. Existence
When you want to check whether a file or folder exists using HyperTalk, you use the command there is: there is a folder "Macintosh HD:Applications:"
In AppleScript, you use the keyword exists and you must direct your command at the Finder: tell application "Finder" exists folder "Macintosh HD:Applications:" end tell |