Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
Command Definitions 43
tell application "Scriptable Text Editor"
open for access alias "Hard Disk:Aliases:To Donald" ¬
with write permission
end tell
NOTES
To specify the name (nameString) of a file, use a string of the form "Disk:Folder1:
Folder2:...:Filename" as described in Chapter 5, “Objects and References,”
of the AppleScript Language Guide. If you specify only the name of the file
(Filename) instead of its entire pathname, AppleScript attempts to find the file in
the current directory.
ERRORS
Path To 2
The Path To command allows you to get the pathname, in the form of either an
alias or a string, of some of the standard folders on a startup disk. It also allows
you to get the location on disk of the frontmost application.
Path To is one of several commands provided by the File Commands
scripting addition.
Error
number Error message
–35 Disk <name> wasn't found.
–37 Bad name for file.
–42 Too many files open.
–43 File <name> wasn't found.
–44 Disk <name> is write protected.
–49 File <name> is already open.
–50 Parameter error.