
Add Partial Job Name to hierarchy information
This is an example script that reads the first 3 characters of each incomming job and adds them to the hierarchy information as an extra level.
Information
Supported by: PowerSWITCH (MAC and WIN)
Language: JavaScript
Description:
Two properties are defined in this script: First character to remember and Last character to remember. By changing these properties on the Script Element, you can specify which part of the file name should be used to create a subfolder in the hierarchy.
When a job arrives, the script retrieves the characters as defined in the properties (e.g. first 3 characters) of the job name. These characters are then added as folder name to the hierarchy information of the job's job ticket. By doing this, an extra level is created in the hierarchy information which makes it possible to create an extra subfolder level with this part of the job's name using the Archive hierarchy tool in a flow.
Using this script
- Download and save the script on your computer: download script.
- Select the script element in your PowerSWITCH flow and browse to the script in the script package property.
or - Open the script in the SWITCHscripter and change it to your needs.
Example flow
- Add partial job name to hierarchy information
This example flow uses a script element to add part of the job's name to the hierarchy information for the job.
