Mail Scripts 2.9.1
Mail Scripts is a collection of AppleScript Studio applications for Mail and Address Book offering additional features or simplified workflow. Mail Scripts consists of the following scripts:
- Add Addresses (Mail): Add addresses found in the selected messages (in the header fields “From”, “To”, “Cc”, and “Bcc”) to the Address Book. This is much more flexible than the “Add Sender to Address Book” available in Mail and provides a convenient way for creating mailing lists.
- Archive Messages (Mail): Move messages from the selected mailbox(es) to an archive mailbox or export them to standard mbox or plain text files for backup purposes or import into other applications. You can select to move all messages or only messages sent within or certain period as well filter messages based on their read and flagged status.
- Change SMTP Server (Mail): Switch between different already defined SMTP servers or define a new one. This is especially useful if you are using your computer in more than one location and have to switch servers for several accounts at once.
- Create Rule (Mail): Create a new rule based on the first of the selected messages. This saves you the trouble of copy/pasting address or other info between the message and the rule window and provides a much quicker way for setting up a rule with multiple criteria/actions.
- Remove Duplicates (Mail): Locate all duplicate messages found in the selected mailbox(es) and move them to a separate mailbox for easy removal (duplicate matching is based on the unique message header “Message-Id”).
- Schedule Delivery (Mail): Allows you to send individual messages at predefined times (this script uses iCal for scheduling message delivery).
- Send all Drafts (Mail): Immediately send all messages in the “Drafts” folders for all accounts. This saves you from having to open each draft in order to send it.
- Open Mailbox, Open Message (Mail): Two small faceless scripts which will open mailboxes with new messages or the new messages themselves when run as a rule action.
- Filter Sent Messages (Mail): Another faceless scripts which will apply your rules to the messages in the “Sent” mailbox.
- Export Addresses (Address Book): Export addresses from the Address Book into tab-delimited text files. You can select which groups and which fields you want to export.
- Search Addresses (Address Book): Find all addresses inside the Address Book matching one or more criteria. As opposed to the “Search” function built into the Address Book, this lets you search in any field as well as for empty and non-empty fields. As an example, you might use this script to search for all phone numbers with a certain area code in order to update your contacts after an area code change.
Mail Scripts are fully localized in English, German, Dutch, French, Italian, Greek, Brazilian Portuguese, and Norwegian.
WHAT’S NEW
Version 2.9.1:
Improvements/bugfixes:
- (Archive Messages): make sure to limit file name length to 255 bytes, not 255 (Unicode) characters to prevent error messages when exporting messages with long subjects containing non-ASCCI characters.
- (Archive Messages): prevent AppleScript error when choosing a new archive location if the previously selected folder was deleted while the script was running.
- (Export Addresses): make sure that the Unicode BOM is written correctly regardless of the CPU type in order to prevent writing seemingly garbage when exporting UTF-16 files.
- (Filter Sent Messages): correct processing of rules with multiple criteria if the first criteria was true and the second one contained an “Any Recipient” rule – “Any Recipient” was previously always matched in this case.
- (Schedule Delivery, Send All Drafts): work around the “The message cannot be sent using the server (null)” issue for messages with formatting or attachments when running under MacOSĀ X 10.5
Note: messages other than plain text sent from a POP account with either of these scripts will not show up in the “Sent” mailbox after delivery – instead, you will get a copy of the message delivered to your Inbox (via Bcc). - Significantly decrease the download size of the scripts.
REQUIREMENTS
Mac OS X 10.3.9 or later.

