Hi,
for invoices I have created one rule per supplier, where I use a name token to check if in the file name the supplier name matches, then use this name token to rename the file and then I have to select the folder with the supplier name (as it is already in the name token) to move the file to this folder.
I assume it would be possible to use AppleScript or JavaScript to import a list of supplier names separate by line break and check those with one single rule instead of creating multiple rules - for each supplier a dedicated one?
As I am not a developer it would be great if somebody had some code snippet in order to start creating and implement such a logic. It would be much easier to maintain the rules and add a new suppliername.
The second part could be trickier. Is it also possible to use the name token to move the file to a specific folder?
The parent folder would always be the same, it would be just another child folder, say instead of subfolder 'Supplier A' the subfolder 'Supplier B'.
Any thoughts and help highly appricated.
Best regards,
Thomas