Mail to EE

EETransfer Off-line documentation

Back to summary
Updated 97/06/24 ReceiveXModem

Receive one or several files using the XModem/YModem protocol.

If the file name of the received file ends with ".pkg", the file is considered as a package.
If the file name ends with ".pct", the file is considered as Macintosh PICT file and is converted into a Newton picture.
If the file name ends with ".nso", the file is considered as a NewtonScript Object file and is converted into a Newton object.
Otherwise, the file is considered as a text file and is not converted.

* charset
type: symbol
possible values: defined in the file "EERecodeConstants.f"
default value: kMacOSCharset ('mac)
Defines which characters set is used for the file and the file name.
This information is used to convert or show the file.

* clientAppSymbol
type: symbol
default value: nil
AppSymbol of the application which intends to use this file.
If clientAppSymbol equals nil, the appSymbol of the application currently running the script will be used, so you will seldom have to override clientAppSymbol default value.

Note: if a file conversion occurs, the clientAppSymbol slot may be ignored by EETransfer.

* convertTextFiles type: boolean default value: nil
If the file name ends with ".txt", and "convertTextFiles" is set to true, the file is considered as a text file and is converted into a Newton text object.
Otherwise, the file is not converted.

* noAck
type: boolean
default value: nil
Don't acknowledge received blocks.
This option corresponds to the YMODEM-g protocol.
If an error is detected in a YMODEM-g transfer, the transfer aborts.

Note: The ZMODEM protocol should be used in applications that require both streaming throughput and error recovery.

* useCrc16 type: boolean default value: nil
Use a Cyclic Redundancy Check coded on 16 bits instead of a checksum to verify if a block has been modified during transfer.
A CRC16 is safest than a checksum.
This option corresponds to the XMODEM/CRC protocol.

* transport type: frame default value: nil

The transport must always be EETransfer.

Note: Before the script executes itself, the global variable "transport" is automatically set to EETransfer. So if you don't use a slot "globalSymbols" you don't have to (and you should not) provide a slot "transport". Otherwise, the "globalSymbols" slot must contain a slot:
transport: 'transport,
©1997 Easter-eggs
All trademarks mentioned are the property of their respective owners