Wait 10 minutes and search for the input name of the PDF in the output

Post Reply
senghaas
Member
Posts: 22
Joined: Tue Dec 06, 2016 1:40 pm
Location: Heilbronn

Wait 10 minutes and search for the input name of the PDF in the output

Post by senghaas »

Hello colleagues,
I have a special requirement and so far I can't find a solution that works well. A few approaches to solve the problem would be great! :)

We receive various files for checking via a source folder. If these do not end up in the destination folder after 10 minutes, a warning email should be sent.

The input file can be of different lengths, the naming is not always logical. An example could be
„GGANZ8996728-A_pf_KoenigAGF_325x242mm_248171.pdf“

The source file always has an extended file name. Up to over 30 different suffixes are possible here, depending on what happened to the file during the check. An example could be:
„GGANZ8996728-A_pf_KoenigAGF_325x242mm_248171_LOW_MP.pdf“

The original name of the input file is always contained in the processed output file.

Does anyone have any ideas on how to set up a reliable check routine here? Is it possible to achieve something here without scripting?


Translated with DeepL.com (free version)
User avatar
JimmyHartington
Advanced member
Posts: 456
Joined: Tue Mar 22, 2011 7:38 am

Re: Wait 10 minutes and search for the input name of the PDF in the output

Post by JimmyHartington »

I am not sure quite what you want to achieve.

But it sound like you get an input file.
This then needs to find another file by some logic.
And if it can not find the file within 10 minutes alert someone.

If this is the case I think you can use the Wait For Asset app.
https://www.enfocus.com/en/appstore/pro ... -for-asset
senghaas
Member
Posts: 22
Joined: Tue Dec 06, 2016 1:40 pm
Location: Heilbronn

Re: Wait 10 minutes and search for the input name of the PDF in the output

Post by senghaas »

Hi Jimmy,
that sounds like it could be the solution to our problem. Since we are currently still using Switch Version 2022 Fall, it would be necessary for us to upgrade to a newer version right away.
Thanks Jimmy & best regards, Jürgen
sander
Advanced member
Posts: 308
Joined: Wed Oct 01, 2014 8:58 am
Location: Den Bosch

Re: Wait 10 minutes and search for the input name of the PDF in the output

Post by sander »

Wait For Asset is great. However, the last time I used it, I couldn't get it to inject (and thus search) a partial filename.

With Inject Wildcard, you can try to inject files based on a partial filename. So I came up with this:
this.png
this.png (43.21 KiB) Viewed 5660 times

In your case: with Inject Wildcard, just search for the original job name (before the .pdf extension) in your output folder. You can loop around to achieve your 10 minute wait.

Edit: boo, just read your reply. Too bad you are running 2022 :(
User avatar
magnussandstrom
Advanced member
Posts: 510
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Wait 10 minutes and search for the input name of the PDF in the output

Post by magnussandstrom »

I'm also using Inject Wildcard for cases like this. Here is a simple flow that edit to fit your purpose.

Link to flow: https://tinyurl.com/bd5mewph

wait_flow.png
wait_flow.png (45.31 KiB) Viewed 5646 times
Post Reply