Good morning,
Long-time lurker, first-time posting. I’ve encountered a scenario I can’t figure out, so I’m reaching out to the community’s collective expertise!
I need to process several PDF files, move them around, and then execute a script. Here are the details:
I receive a 25-page PDF from our accountant. I only need to process the first 5 pages and discard the rest. Once these 5 pages are moved to the correct location, I need to run a script that calls a webhook for further processing.
Here’s my current process:
1) The multi-page PDF is saved to Downloads. I use an Automator workflow that splits the PDF into individual pages and moves them to a new folder.
2) In this new folder, I have a rule that identifies the 5 pages I need, renames them, and moves them to a specific location. A second rule deletes any PDFs that don’t match the criteria for these 5 pages.
The next step is to call a webhook, but I need it to trigger only once, ideally with a 5-minute delay. This delay is necessary because the 5 PDFs are moved to a Google Shared Folder, which is then processed using Make.com. There’s a slight delay when moving files to the Google Shared Folder, so triggering the script after every file is not feasible, as the file might not be in place yet.
What would be the best solution to achieve this? Or should I approach the problem differently and explore other methods?
Thanks so much to everyone who takes the time to read and offer suggestions!