newbie automator question: save file
I have created my first Automator workflow. Pretty simple, I have used the PDF to image action. Now, this works, but the file is saved somewhere in /var/folders. What I want is a service that takes the selected PDF files and renders them to JPEG at a certain dpi and quality (so far so good) but that then saves it next to the PDF file already there. I tried getting tthe filename and using that in a follow-up action, but that hasn't worked. I can get the rendered image file in a mail message and I can see it ending up in /var/folders when I just use the PDF to image action.
But I can't find an action or combination of actions that gets me the result file in the right location (same as source).
Can someone help?