Use text as Automator variable to find files and sort them into subfolders
Hello,
I have been long looking for a solution to a problem succinctly stated as in the title.
I want to say first that I am not good at scripting so please, be patient with me.
I have plenty of files—PDFs—within the same folder.
Their filename usually can have a pattern like this, 'XYZ... NAME SURNAME..XYZ' or like this, 'XYZ... SURNAME, NAME XYZ', where 'XYZ' is any string of text of no importance in this context.
What I would like to achieve is having an Automator service or quick action which, after asking for some text—namely what I know being those NAME and/or SURNAME—would prompt a search for each and every item containing those words, their collection and sorting within the same subfolder and the naming of that subfolder after the words adopted.
I hoped to do this with Automator and using variables but unfortunately variables are useless with either 'Find Finder Item' and 'Filter Finder Item' actions.
Any help would be very much appreciated.
Thanks for reading.