Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
Command Definitions 41
ERRORS
Open for Access 2
The Open for Access command opens access to a file for reading or writing
using the Read and Write commands. Opening a file for reading and writing is
not the same as opening it with the Open command. The file is open only in the
sense that AppleScript has access to it for reading and writing data; it doesn’t
appear in one of the target application’s windows, and it doesn’t even have to
be one of the target application’s files.
Open for Access 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
open for access referenceToFile
[ write permission Boolean
]
Error
number Error message
–50 Parameter error.
–108 Out of memory.
–1700 Can't make some data into the expected type.
–1701 Some parameter is missing for <commandName>.
–1704 Some parameter was invalid.
–1705 Operation involving a list item failed.
–1708 <reference> doesn't understand the <commandName> message.
–1718 Reply has not yet arrived.