Support

Register your Product

Product Documentation

Knowledge Base

Contact Support

Community

User Group

Resources

Application Library

Flow Library

Script Library

Sort job based on XMP metadata

This is an example script that shows how information from the XMP 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 XMP dataset by using the "XMP Sort Expression" property.

The script will read the value of this property and look for that specific field in the XMP dataset. Afterwards it will get a list of all valid connections and will try to match the XMP 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.

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

  • Sorting based on XMP metadata

    All incoming files are sorted one way or the other depending on the XMP information stored in the file (more specific: in the Destination field).

© Copyright 2007 by Gradual Software.