Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
Command Definitions 19
RESULT
A reference of the form file "Disk:Folder1:Folder2:...:Foldername" for the
directory specified by the user, if any.
EXAMPLE
choose folder with prompt "Choose a folder or volume:"
NOTES
If the user clicks Cancel in the Choose Folder dialog box, AppleScript returns
error number –128. If you want your script to continue after the user clicks
Cancel, you must include an error handler. For information about Try
statements and error handlers, see Chapter 7, “Control Statements,” in the
AppleScript Language Guide.
ERRORS
Close Access 2
The Close Access command closes a file opened with the Open for Access
command. It is one of several commands provided by the Read/Write
Commands scripting addition. For more information about these commands,
see “Using Read/Write Commands,” which begins on page 71.
SYNTAX
close access referenceToFile
Error
number Error message
–108 Out of memory.
–128 User canceled.