Read Sharp CALLISTO V2 (serv.man5) User Guide / Operation Manual online
Business I.T. Systems Ltd
Callisto Script
The Callisto Script consists of a sequence of logical instructions. The Script is a subset of
the Object Pascal language as used by Borland in their Delphi product. Each Input Queue
has its own Script. This allows individual rules to be set for each Input Queue. Each script is
defined in a file (*.csf) and is passed along with the JobID of the job to be processed. The
Script will process only one job at a time.
the Object Pascal language as used by Borland in their Delphi product. Each Input Queue
has its own Script. This allows individual rules to be set for each Input Queue. Each script is
defined in a file (*.csf) and is passed along with the JobID of the job to be processed. The
Script will process only one job at a time.
The Callisto Script comprises of functions and procedures. The Script also consists of
classes. The classes defined are Job, User and Queue (Output Queue). Job and User are
implicit within the Script so any property, function or procedure of these can be called from
anywhere within the code.
classes. The classes defined are Job, User and Queue (Output Queue). Job and User are
implicit within the Script so any property, function or procedure of these can be called from
anywhere within the code.
Queues must be defined within the Init procedure before they can be referenced in the
Process procedure of the Script. Queue names are defined as Queue1, Queue2 etc. These
Queues refer to Output Queues that are actual physical devices.
Process procedure of the Script. Queue names are defined as Queue1, Queue2 etc. These
Queues refer to Output Queues that are actual physical devices.
There are a variety of general functions and procedures defined and these provide additional
functionality for the script. These are not associated with any class and do not need an
initialisation procedure. Furthermore, they can be called from anywhere within the code.
functionality for the script. These are not associated with any class and do not need an
initialisation procedure. Furthermore, they can be called from anywhere within the code.
An example of a general function and procedure is GetIPAddress. This retrieves of the IP
address of PC that sent the print job. All the procedures and methods are listed in the Script
API (See the Callisto Script API Document).
address of PC that sent the print job. All the procedures and methods are listed in the Script
API (See the Callisto Script API Document).
Structure of Callisto Script
The Callisto Script comprises of two sections, these are Init and Process. When the Script
is run, procedure Init is called first and consists entirely of initialisation code that defines
the number of Output queues and their properties. The Process procedure contains the code
required to process the job. It is this section of the script that can be manually edited, and it
is where the custom script commands are inputted.
is run, procedure Init is called first and consists entirely of initialisation code that defines
the number of Output queues and their properties. The Process procedure contains the code
required to process the job. It is this section of the script that can be manually edited, and it
is where the custom script commands are inputted.
var
//Declares and Initialises Classes
procedure Init ;
begin
begin
//Defines and Initialises Queues
end ;
var
var
// Defines Variables in the script below
procedure Process ;
begin
// This sections contains script commands and can be edited by administrator
// All code MUST be define in here
end ;
Introduction To Callisto Scripting.doc
Page 13
Click on the first or last page to see other CALLISTO V2 (serv.man5) service manuals if exist.