The only con of the system is that for every input file taken by filebot, it generates a separate message, unlike the default notification system provided by FileBot where all the processed files are bundled together in a HTML file and sent to the user. This is done by running a script with the
Code: Select all
--def exec="@file/path"
I was wondering if, by shell scripting (BASH and PowerShell) it was possible to determine how many inputs filebot took, and if it happens to be more than one/two/five it will carry out a different set of instructions, like bundle the notification messages into a single message (I'll take care of that problem)
I only need to know what condition I should use to know how many inputs filebot took, and if it's more than a specified number, run a second script.