Applescript needed to move Mail attachment to folder
Hi,
I am in need of a script to add to a Mail Rule that will take an attached image (JPEG) and place it in a folder with the name indicated in the body "message" section of the email, and also renaming that file.
Example:
Rule will use "Subject" - "contains" - "Xfer Image"
The email will contain something like this in the body "message" section of the email.
itemName - Rose_Flower_001.
itemNumber - Fl-652
I would like the mailed JPEG image Attachment copied over to a folder called (itemName) which would be place within the following path:
(Folder with the itemName) ( file renamed to itemNumber)
"/Volumes/Ron/Dropbox/Images/Rose_Flower_001/Fl-621.jpg
Then after it's done this I would like to have the that email moved from the inbox to a sub-folder called "Image Folder Created"
Any and all help or suggestions would be greatly appriciated.
Hopefully this can be done....
I really need this for my start-up business and it would save me a lot of time making folders and managing emails with attachments.
Thanks in advance....
Ron
iMac, Mac OS X (10.7.3)