Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
28 Command Definitions
If you specify a reference to a file or an alias, the Get EOF command attempts to
match the reference with a file previously opened with the Open for Access
command. (It doesn’t matter whether the file was opened with read-only
permission or with write permission.) If a match is found, Get EOF returns an
integer indicating the offset of the end of the file. If no match is found, Get EOF
opens the file, gets the end of the file, then closes the file.
If you specify a file reference number previously obtained with the Open for
Access command, the Get EOF command returns a result immediately.
ERRORS
Info For 2
The Info For command returns a record that contains information about a
specified file or folder. The Info For command is one of several commands
provided by the File Commands scripting addition.
SYNTAX
info for referenceToFile
PARAMETER
referenceToFile
A reference of the form file nameString or alias nameString.
Class: Reference
Error
number Error message
–38 File <<name>> wasn't open.
–50 Parameter error.
–51 File reference number error.