Support

Register your Product

Product Documentation

Knowledge Base

Contact Support

Community

User Group

Resources

Application Library

Flow Library

Script Library

Add XMP job ID to file name

This script shows how you can retrieve a field from the metadata associated with a job and use it to change the name of the job.

Information

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

Description:

This script accesses the XMP dataset in the job ticket and searches for the Ghent PDF workgroup job ID (adsml-at:SellerPlacementID).

Next, the job ID is added to the file name as a prefix. If no job ID is found or the job doesn't contain any XMP information, the prefix "xxxxxx" is added to the job name.

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 GWG Job ID to job name

    This example flow retrieves the job ID from the XMP information stored in the PDF file. This job ID is added as a prefix to the filename.

© Copyright 2007 by Gradual Software.