
Sort job based on XMP metadata
This is an example AppleScript that shows how information from the XMP metadata associated with a job can be used to filter files.
Information
Supported by: PowerSWITCH (MAC)
Language: AppleScript
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
- Sort on XMP metadata using AppleScript
An AppleScript is used to sort all incoming files depending on the XMP information stored in the file (more specific: in theDestination field).
