6-9

Memory

Accessing Files with PostScript Emulation

File Naming Conventions

For any PostScript emulation operator that requires a filename parameter, the filename can be one of the following:

%device%filename

Specifically references a file on a particular device. If the filename does not exist on %device%, no other %device% is accessed for a duplicate filename.

filename

Does not specifically reference a device. The following action occurs:

For the PostScript emulation operator deletefile, only the first device in the search order is checked for filename.

For all other PostScript emulation operators, and all other combinations of search order and available devices, each installed %device% is checked in the search order for the existence of filename. The operator acts upon the first filename that it finds.

Device Names

The term device refers to flash memory, disk, or ROM. For PostScript emulation, some of the operators require or return device names. These operators are: deletefile, filenameforall, devforall, devdismount, devmount, devformat, devstatus. The device always begins and optionally ends with a % character. The following are the valid device names:

%rom%

%flash%

%flash1%

%disk%

%disk1%

The same filename can exist on more than one device. The device prefix determines the actual file to use. For example, %rom%myfile and %flash%myfile designate, respectively, a file called myfile both on the ROM and on flash memory. The device name distinguishes which file to use.

Page 282
Image 282
Lexmark C760, C762 manual Accessing Files with PostScript Emulation, File Naming Conventions, Device Names