Autosave to Inputfolder

Hello,

im using PDF Creator to convert various images from construcionsites to a single PDF i can then send per Mail.

I have a folder for each site that is named after the sites adress with all the .jpg inside.

Now i would love to use the autosave to place the PDF in the folder the input pictures are in and naming the PDF after the folder its created in.

I've fiddled around with tokens and googled for a few hours but i cant seemt to get a working profile going.

Can someone provide a solution for this or point me in the right direction?

Thanks.