Automator 'rename finder items' was not supplied with the required data - error

This is doing my head in.


Super simple Automator script saved... all its designed to do is print an email as a PDF and then rename it with the date and time of the email.


When run from the Mail App - print dialog - it just doesn't run and the Automator log has no entries for it.


When run form Automator manually it runs, but fails with the above error.


I read that prefs for Spotlight need to be set to accept PDFs and also not exclude the volume... my spotlight is fine and is correct - so thats not it.


Seems to me the Automator app is not seeing the file created - therefore its not renaming it, as there is nothing to rename. I tested this... i removed all steps form the script and just left the first step... selection... so when its run I should see an entry in the log and it should print the email to PDF that is currently selected.


Test failed. No PDF printed.


Any ideas ?

User uploaded file

User uploaded file

Posted on Aug 29, 2016 12:06 AM

Reply
7 replies

Aug 29, 2016 1:27 AM in response to Guy Hollister

A Mail message isn't a Finder item. You wish to pas an email message to Rename Finder Items, but Rename Finder Items can only accept a Finder item, not an email message. As you can see, there is no link from Get Selected Mail Messages and Rename Finder Items, so nothing is passed down the chain.


You shouldn't be asking it to get an email message? It should have already been printed to PDF.

Aug 29, 2016 2:27 AM in response to Guy Hollister

You cannot upload a script here that can be downloaded. The Forums don't work that way.


I created my workflow exactly as yours is depicted, but without the Get Mail Messages action.

One other thing that maybe causing the problem is the second rename action has Modified date. Since it is just being created, I would think that would be the same, but maybe it is not set, yet. Try switching it to Created, also.


You can edit your Move action to point to another local folder, but that is not likely the problem.

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 'rename finder items' was not supplied with the required data - error

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