Filter by Filename Action

FolderMill can instantly convert, copy, rename, print files or apply a text or image watermark to your files with the use of Hot Folders.

Sometimes you might need to put all files into one folder, but process them differently. You can do it using Filename Filter.

It can help you filter files by name or extention and define which files should be either processed or skipped according to the filename mask indicated.

Set various conversion and printing tasks with FolderMill

Let’s look into a case: for example, you have an online store and you deliver goods worldwide. There are different types of documents that usually go with a single order: order details, dispatch notes, documents for wholesale partners, invoices, label stickers, etc. For each order there can be a PDF document containing order details, such as order ID, product name, quantity ordered, sales channel, shipping method, billing country or some other data. Afterwards, PDF documents should be printed along with label stickers, and all the order details should be stored in a completed orders folder after the order have been shipped.

You can optimize your workflow and keep your orders well organized using Hot Folders and Filename Filter Action.

Filter files by mask

Filename Filter Action allows you to pick (or, on the contrary, skip) certain groups of these documents and let FolderMill perform certain actions on them. The amount of such combinations is endless, and you can create as many actions and Action Sets as you need within one or several Hot Folders.

Add Filename Filter Action

  1. Create a new Hot folder and add “Filename Filter” Action:

    Select specific files by Filename Filter in FolderMill
  2. Choose between “Process only files by mask” or “Skip files by mask” and enter a filename or part of a filename:

    Set filename mask in FolderMill

The filename mask should be entered in the following format: [filename].[file extension]

Here you can input filenames or parts of filenames, e.g. if you have a file Order_001.pdf, input Order_001.pdf or Order_001 as a filename mask, and only this file will be processed.

Filename Filter Action Syntax

You can also use special wildcard characters for more complex file mask options.

These are special characters and character expressions, which may be used:

  • Asterisk (star, *). The asterisk is the wildcard character which stands for any string of characters (including no characters at all). In other words, it indicates zero or any number of characters. Here are some examples for "Process only files by mask" filter:

*.* All files with any filename and any file extension will be processed.
*.pdf All files with any filename and file extension .pdf will be processed.
invoice.* All files with filename “invoice” and any file extension will be processed.
*invoice* All files with filename containing “invoice” in their filename will be processed.
invoice*001.* All files with filename starting with “invoice” and containing “001” with any file extension (asteriks after the dot) will be processed. There may be some characters between “invoice” and “001” (e.g. “invoice_template001”) or none of them.
invoice.pdf All files with PDF extension and filename containing "invoice" will be processed.

  • Question mark (?). The question mark matches one single character. It indicates any random character in the filename. Examples:
invoice_??-??-????.pdf All PDF files with filename starting with “invoice_” and containing 8 characters in the place of question marks will be processed (e.g. an invoice created on July 21, 2017 - invoice_21-07-2017.pdf)
Item_type_?_ID_???.zpl All files, which have a filename containing "Item_type_" where item type is marked as a single character (e.g. "type_A") and ID containing 3 characters (e.g. ID_001), will be processed.

The asterisk and question mark serve as wildcard characters, exactly as they do in MS-DOS and Windows.

The examples above may be combined together within one Filename Filter Action: use comma to enter a sequence of filename masks. Filename filter should be combined with another action(s) in order to take effect.

Besides, you can create several Hot Folders for your convenience. Then you'll just assign specific Action Sets for each one of them and place one group of files to one Hot Folder, another group of files to another, etc.

If you have any questions or issues on feature described here, please contact us.

Download FolderMill