Support

Register your Product

Product Documentation

Knowledge Base

Contact Support

Community

User Group

Resources

Application Library

Flow Library

Script Library

Sort job based on JDF metadata

This is an example script that shows how information from the JDF metadata associated with a job can be used to filter files.

Information

Supported by: PowerSWITCH (MAC and WIN)
Language: JavaScript

Description:

When selecting this script in a flow, you'll be able to define which field you want to look up in the JDF dataset by using the "XPath to sort field" property.

The script will read the value of this property and look for that specific field in the JDF dataset. Afterwards it will get a list of all valid connections and will try to match the JDF information with one of the connections and move the file over the matching connections. If no match was found, the job is moved over the "Error out" connection.

In order for this script to work, the user can submit:

  • a ZIP file containing a folder with an asset and associated JDF file
  • a mime file containing a folder with an asset and associated JDF file
  • a folder with an asset and associated JDF file

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

  • Sort Jobs based on JDF information

    This example flow adds the JDF information that comes with a file to the job ticket of that file. A script will search for the customer's company name in the JDF information and move the file in the correct folder.

© Copyright 2007 by Gradual Software.