Layout automation from structured filenames

Layout automation from structured filenames

Layout automation from structured filenames

Layout (as of version 6.3) has 2 preference items tailored for automated flows where manual interaction is required. Typically when Enfocus Switch, Esko Automation engine or another workflow is present.

In those cases the filenames are usually structured in a fixed way and contain job information in the name. Layout allows to pick-up details from the filename and use it for creating the nested-job name and the number of copies to add to the nest.

The original names are embedded in the nest information and can be picked up by the MIS system (for more information see the Automation section of this site).

The information is extracted from the filename using Regular Expressions. This allows to build custom name structures and get the information from it.

Regular Expressions

An example of the Regular Expression (or RegEx) is a format like: .*_([0-9])pcs
The example will scan the filename until it sees a number between “_” and “pcs”. This number is returned and can be used as the copy counter. So the name “128485_My Example job_5pcs” will return 5 and when being dropped on the Layout canvas will result in 5 copies.

Using the RegEx ([a-zA-Z0-9]*) will result in capturing “128485” as nest name from the filename “128485_My Example job_5pcs”.

To build your and test your own regular expression use https://regex101.com/ or similar site.

    • Related Articles

    • Layout Won't Open

      If a setting or file that was previously saved in Layout Preferences is no longer available, it can prevent Layout from opening. To resolve this issue, you need to reset your preferences by removing the Layout.xml file. Steps to Reset Layout ...
    • Layout Key shortcuts

      Following Key shortcuts are available in Layout: D = duplicate selection R = Rotate clock wise selection Shift+R = Rotate counter clock wise selection M = Mirror selection Available from V6.7.0
    • Layout: Searching for printers

      When Layout is first started it will display the message "Searching for printers" After a short wait, this message will disappear and you can then proceed to create your job in Layout. In some circumstances this message will stay on the screen and ...
    • Layout Job list menu

      Right click on any file in your Layout job list to find some additional menu items: Rename document: To rename the document in the list. It will also rename the nest name (top right of Layout) Revert document: Revert the document to it's original. ...
    • Workflow - Working with Variables

      Workflow allows you to parameterize the settings of each component in the flow and make decisions optional using variables: There are 3 different types of variables: Keywords: User data generated from XML, JSON, XLSX, CSV, Database or RegEx Job ...