Need AppleScript to move email to another folder
I need an Applescript to move emails from one folder to another.
Does anyone have an AppleScript that would do that, or could give me instructions?
I haven’t done AppleScript before, but I know FileMaker Programming.
It would work something like this:
In Mail (Mavericks)
Go to Import folder
Go to 0001 (sub-folder in Import folder)
get email message (there’s only one)
Move that email to Email Archive folder (still in Mail)
Go to 0002 (next folder in Import folder)
Move that email to Email Archive folder
Loops through all 1,000 folders, all inside Import folder.
More info, Here’s what happened:
I kept having problems with my Mac, so I finally decided to do a clean install of Mavericks.
I first backed up all my files by copying them to a new hard drive.
Turns out, the mail files are hidden. So, when I copied all folders to a new hard drive, all my mail got left behind. I hate this new design; that they now hide email files.
I then formatted my hard drive and erased all my email. (Whoops!)
I then re-installed Mavericks, that worked, but I soon discovered I didn’t have my email.
I took my Mac to a Data Recovery service, and
Good News! They were able to recover some of my email.
They gave me several folders of individual .emlx email files.
I tried to import one folder into Mail, and the emails ended in up 1,000 separate folders, all under an Import Folder.
I need an AppleScript to take 1,000 emails, one at a time, currently all in separate folders, and move them to an Archive folder.
Could someone help me?
Thank you,
Larry
MacBook Pro, OS X Mavericks (10.9.1)