Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
48 Command Definitions
Reseeding with the value 0 causes the seed to be reset to a random value each
time the command is called.
display dialog ¬
"After reseeding with 0, a truly random number: " & ¬
(random number from 1 to 10 with seed 0)
ERRORS
Read 2
The Read command reads data from a file, starting from the file mark and
continuing to the end of the file.
Read is one of several commands provided by the Read/Write Commands
scripting addition. For more information about using these commands and
sample scripts, see “Using Read/Write Commands,” which begins on page 71.
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.