Section B.3. Existence


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



AppleScript. The Missing Manual
AppleScript: The Missing Manual
ISBN: 0596008503
EAN: 2147483647
Year: 2003
Pages: 150

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net