Args
When args array is empty or missing all selected items are used as args, one item per argument.
The following template ${FOLDER_ITEM_n}
where n ≥ 1 can be used to refer to the selected item. Items are in click order.
An entire arg is ignored when template refers to an item out of range.
For example:
[
"${FOLDER_ITEM_1}", // base / left
"${FOLDER_ITEM_2}", // left / right
"${FOLDER_ITEM_3}", // right
"${FOLDER_ITEM_4}" // merge
]
With only two selected items args will be ["path/to/item/1", "path/to/item/2"]
Nested Args
Arguments could be nested. An entire nested arg and all its children is ignored when template refers to an item out of range.
For example:
[
"${FOLDER_ITEM_1}", // base / left
"${FOLDER_ITEM_2}", // left / right
"${FOLDER_ITEM_3}", // right
[
"--out",
"${FOLDER_ITEM_4}", // Output file
[
"-L", "Label for Base",
"-L", "Label for Left",
"-L", "Label for Right",
]
]
]
With only two selected items args will be ["path/to/item/1", "path/to/item/2"]
With four selected items args will be flatten to:
[
"path/to/item/1",
"path/to/item/2",
"path/to/item/3",
"--out",
"path/to/item/4",
"-L",
"Label for Base",
"-L",
"Label for Left",
"-L",
"Label for Right",
]