Automator: weird issue with "move finder items"

I have a weird issue with mac automator (on Mojave).

  • What I want: Take a pdf > save each page as png to same folder as pdf
  • What happens: Takes a pdf > all pngs are saved to desktop


Here is the automator after a test run:



You can see how pdfPath actually shows me the folder where pdf is in, but then after removing it DOES remove the files out of system folder, but not to pdfPath but to Desktop. Important: if I manually pick any folder, it will save it there and not to desktop, so still somehow related to the pdfPath variable?


Anybody an idea why it happens and how to fix?

Posted on Jun 22, 2019 12:01 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 22, 2019 12:46 PM

Everything gets passed through each action and is conjoined. You need to strip the path item from the list of items returned after getting the container. The result that goes into pdfPath is something like {alias test.pdf,"path_to_test.pdf"}

In the Result, click the {} button and see what is returned in each step.

Similar questions

4 replies
Question marked as Top-ranking reply

Jun 22, 2019 12:46 PM in response to ilwez

Everything gets passed through each action and is conjoined. You need to strip the path item from the list of items returned after getting the container. The result that goes into pdfPath is something like {alias test.pdf,"path_to_test.pdf"}

In the Result, click the {} button and see what is returned in each step.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Automator: weird issue with "move finder items"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.