Specifications

Create the output(s) in the temporary location.
Call one of the sendTo functions for each output.
If the incoming job is passed along without change the Job.sendTo() functions can be called
directly on the incoming job path, skipping all intermediate steps.
Based on the above scenario, Switch automatically handles all complexities:
Moving and copying jobs to the appropriate output connections.
Providing outgoing jobs with a unique name prefix.
Creating and updating the related internal job tickets.
Removing the incoming job and any temporary files created along the way.
Logging the appropriate messages.
A job remains in the input folder until one of the Job.sendTo() or Job.fail() functions has been
called for the job. The jobArrived entry point will be invoked only once for each job, so if the
entry point does not call a sendTo() or fail() function for the job, the script should do so at a later
time (in a timerFired entry point or in a subsequent invocation of the jobArrived entry point for
a different job).
Note:
After Switch server quits and restarts, the jobArrived entry point will be invoked for all jobs in
the input folder once again.
Getting job file/folder information
Returns the absolute file or folder path for the job as it resides
in the input folder, including unique filename prefix.
getPath( ) : String
Returns the unique filename prefix used for the job, without the
underscores. For example, for a job called “_0G63D_myjob.txt”
this function would return “0G63D”.
getUniqueNamePrefix( ) :
String
Returns the file or folder name for the job, including filename
extension if present, but excluding the unique filename prefix.
getName( ) : String
Returns the file or folder name for the job excluding filename
extension and excluding the unique filename prefix.
getNameProper( ) : String
Returns the job’s filename extension, or the empty string if there
is none.
getExtension( ) : String
Returns the job’s Mac file type code as a 4-character string if
available, otherwise the empty string.
getMacType( ) : String
Returns the job’s Mac creator code as a 4-character string if
available, otherwise the empty string.
getMacCreator( ) : String
Returns true if the job matches the specified file type, specified
as a filename extension, and false otherwise.
isType( ext : String ) :
Boolean
464
Enfocus Switch 10