Job Log Syntax
At the top level, the job log defines a dictionary of arrays. Each entry in a dictionary is indexed by a key string. The data for an entry is an array of values, with each value being either a dictionary, a string, a number, a boolean, or a null value.
To define the job log dictionary, the job log uses a series of ordered statements to be read in order from the start to the end of the file. Each line is either an assignment, adding a value to the current dictionary, or a command. Current commands used to mark the extent of dictionaries by LaserWriter 8 are
The job log is made up of a series of lines in which each line can be terminated by a carriage return, a line feed, or both. LaserWriter 8.6.5 currently terminates each line with a carriage return, but this behavior may change in future LaserWriter releases. Job Log readers should be prepared to interpret both a carriage return and a line feed, or both.
White space, defined to be spaces or tab characters, and the character ':' delimit tokens. Comments can be placed on a line using "//". The "//" and all of the characters to the end of the line are considered to be the comment. The comments provide information to a human job log reader.
The Job Log Syntax:
Currently Defined Dictionaries and Keys for LaserWriter 8.6.5
Top Level Dictionary:
Job Log Reader
Prepress houses may want to create a job log reader to parse for information relevant to their business.
A job log reader should maintain a stack of dictionaries. The dictionary stack's top dictionary is the current dictionary, and assignment statements add values to the current dictionary. A job log reader should define an empty dictionary and place it on the dictionary stack before reading the first line from the job log. The
When an assignment line is read, it contains a key and a value. The job log reader must look up the key in the current dictionary. If the key exists in the dictionary, the reader should obtain the array associated with the key. The reader should then extend the array by adding the value from the assignment log to the end of the array. If the key is not found in the dictionary, the reader needs to create a one-element array containing the assignment value and add the new array, indexed by the key, to the dictionary.
As you can see, the job log is a useful new feature added to the LaserWriter 8.6.5 driver.
Contact ADC | ADC Site Map | ADC Advanced Search
|For information about Apple Products, please visit Apple.com.|
Contact Apple | Privacy Notice
Copyright © 2002 Apple Computer, Inc. All rights reserved.