I'm trying to create a workflow in Automator which will basically:
- Fetch new email messages
- Filter the messages so only ones with a certain sender come through
- Take the attachment from these and save it in a folder
The following workflow works perfectly for it:
- "Get New Mail"
- "Find Accounts in Mail"
- "Get Attachments from Mail Messages"
However, I have one problem! All of the attachments will have the same name (photo.jpg because they'll be sent from an iPhone). So, once it's copied the first attachment over to a folder, it errors... due to the fact that a file of that name already exists. How can I get it to save the attachments as 1.jpg, 2.jpg, 3.jpg etc. - or is there another method to achieve what I want to do?
- Fetch new email messages
- Filter the messages so only ones with a certain sender come through
- Take the attachment from these and save it in a folder
The following workflow works perfectly for it:
- "Get New Mail"
- "Find Accounts in Mail"
- "Get Attachments from Mail Messages"
However, I have one problem! All of the attachments will have the same name (photo.jpg because they'll be sent from an iPhone). So, once it's copied the first attachment over to a folder, it errors... due to the fact that a file of that name already exists. How can I get it to save the attachments as 1.jpg, 2.jpg, 3.jpg etc. - or is there another method to achieve what I want to do?