Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
Command Definitions 27
Get EOF 2
The Get EOF command returns an integer that indicates the offset, in bytes, of
the end of a specified file from the beginning of the file. 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
get eof referenceToFile
PARAMETER
referenceToFile
A reference of the form file nameString or alias nameString,
or a file reference number returned by a previous call to the
Open for Access command (see “Notes”).
Class: Reference or integer
RESULT
If the command is successful, it returns an integer indicating the offset of the
end of the specified file.
EXAMPLE
get eof file "Hard Disk:Status Reports:Weekly Report"
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.