Note: This is a work in progress and will be formatting errors. Read more about the project on the home page. read The read command reads data from a file. (You must have already opened the file with the open file command.) Read places the data into the local variable it . Reading of a newly opened file starts from the beginning of the file, or optionally at character integer . If you use the form at -integer , reading starts at integer characters from the end of the file. Subsequent reads continue from the last point read. continues until it has read the specified number of characters or it reaches the named ASCII character (which can be specified as a constant: colon, comma, end , eof , formfeed , quote , return , space , or tab ). All characters count as data, including return characters at the end of lines, spaces, and tab characters. Examples
PlaceholdersfileNameAn expression that evaluates to a text string that is also a valid Macintosh filename. For example: integer An expression that evaluates to a positive or negative integer or to zero. For example:
In AppleScript, integer is a value class. posInteger An expression that evaluates to a positive integer. For example:
See also: background, bkgnd, button, card, chunk, field, menu , and menuItem char An expression that yields a single character. For example: Related Topics
|
Version 0.7b1 (March 24, 2022)