More Software…

Mail Scripts Icon
Mail Scripts 2.10.3

Some of the scripts installed as part of 'Mail Scripts' are not compatible with MacOS X 10.7 (Lion) or higher — Apple made some changes (e.g., partially breaking AppleScript in Mail, removing Perl 5.8) which make it impossible to update the scripts so that they would work correctly again.
For people wanting to play with the scripts, you are welcome to download the complete source from the download link below.
Thank you to everyone that supported the development over the years and I am sad to have to stop development and support but I don't see any feasibility to continue at this point in time.

Introduction

MacOS X's Mail and Address Book have large AppleScript dictionaries which allow almost every aspect of these programs to be scripted. Since some features are rather cumbersome in the standard implementation, I decided to write some scripts to ease workflow. I started writing the scripts after the release of MacOS X 10.2 (Jaguar) and made several improvements and additions over time. After the release of MacOS X 10.3 (Panther) all scripts have been completely rewritten as AppleScript Studio applications allowing for many additional features.

Features

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)

Archive Messages (Mail)

Change SMTP Server (Mail)

Create Rule (Mail)

Remove Duplicates (Mail)

Schedule Delivery (Mail)

Send all Drafts (Mail)

Open Mailbox, Open Message (Mail)

Filter Sent Messages (Mail)

Export Addresses (Address Book)

Search Addresses (Address Book)

Program Usage

After running the installer, the scripts are located inside a folder called "Mail Scripts" located inside your Applications folder (even though you can move the scripts to any other location of your liking, the installer will not remove previous versions located at a different path). You can run the scripts either from double-clicking their icons from within the Finder or using the launch scripts (or assigned keyboard shortcuts) from within the script menu inside Mail and Address Book (the script menu is the menu with the paper scroll icon. In 10.3.x, it is located to the left of the Help menu - in 10.4.x and higher it is located on the far right of the menu bar).

General Remark: Mail's AppleScript implementation does not seem to be able to handle too many request if Mail is busy doing something else. Some of the scripts seem to run better if you take all your accounts offline first (Choose "Mailbox→Online Status→Go Offline" from Mail's menu).

Add Addresses

Archive Messages

Change SMTP Server

Create Rule

Remove Duplicates

Schedule Delivery

Send all Drafts

Open Mailbox, Open Message

Filter Sent Messages

Mail does not apply rules to sent messages - if you want to organize your sent messages in mailboxes together with your received messages, you have to manually select all messages in your "Sent" mailbox and choose "Apply Rules to Selection" from the menu. This script tries to automate this for you.
Note: this script is somewhat ugly and slower than Mail's internal apply rules command - things would be so much easier if Mail would allow rules to be applied to sent messages or at least supply an AppleScript command "apply rules to selection". Please let Apple know that they should add this in future versions of Mail.

Export Addresses

Search Addresses

Known Issues

MacOS X 10.4 (Tiger) Compatibility

MacOS X 10.5 (Leopard) Compatibility

MacOS X 10.6 (Snow Leopard) Compatibility

MacOS X 10.7 (Lion and higher) Compatibility

Download

Disclaimer

I wrote these scripts for my own personal use and they work for me. Mail Scripts are provided "as-is" and I don't take any responsibility for the integrity of your mail and address data - please make sure that you have an adequate backup of your data before using the scripts.
Mail Scripts are distributed free of charge - I decided to make them available for the Macintosh community. I have a day job and I will still survive if nobody sends me money - I am happy with hearing that I saved someone's day with my little scripts. However, donations are not turned away;-) - you can make a secure donation through PayPal.
Mail Scripts may not be redistributed via the web or any other electronic media except with explicit written consent by the author.

System Requirements

Since Apple doesn't keep the AppleScript dictionaries for Mail and the Address Book consistent between major system versions, the latest compatible version of the scripts depends on the system version you are running:

The scripts are universal binaries (PPC & Intel) and should run properly on every computer which is able to run MacOS X.

Download Link

Download the latest version of the scripts Version 2.10.3, 3.3MB — requires MacOS X 10.4 or higher — please note that MacOSX 10.7 or higher are not supported and some of the script will not work.

Previous versions of the scripts are no actively supported but are still available for users running older system versions:
Version 2.10 for MacOS X 10.3.x (disk image, 4.2MB)
Version 1.3.7 for MacOS X 10.2.x (StuffIt archive, 218kB)

If you want to look at the source code of the various scripts, you can download a project (Xcode 3.1 or higher) with the complete source (1.7MB) — don't blame me if you don't understand everything or screw up your system by changing some of the code;-) If you decide that my code is useful and use some of it in your own projects, please add proper credit and mention my scripts.

Mail Scripts are currently fully localized in the following languages: English (development language), German, Dutch (translation by Guy De Lee), French (translation by Sébastien Marty), Italian (translation by Marcello Teodori), Greek (translation by the Hellenic Macintosh User Group), Brazilian Portuguese (translation by Gui Leite), and Norwegian (translation by Egil Helland). Please contact me if you want to help localizing to other languages.

Acknowledgements

Thanks to Yoram Blumenberg for making a much cleaner and nicer-looking icon for Mail Scripts than what I originally came up with.

For providing code for making the "Remove Duplicates" script perform much faster and no longer rely on the presence of Message-ID headers on system 10.4 and above, many thanks go to Charlie Ford and Ben Trask.

Version History

2.10.3 (July 10, 2011)

Improvements/bugfixes:

Show full version history
Hide older version history

2.10.2 (May 12, 2010)

Improvements/bugfixes:

2.10.1 (December 6, 2009)

Improvements/bugfixes:

2.10 (October 4, 2009)

New features:

Improvements/bugfixes:

2.9.1 (June 28, 2009)

Improvements/bugfixes:

2.9 (January 25, 2009)

Improvements/bugfixes:

2.8.3 (December 23, 2007)

Improvements/bugfixes:

2.8.2 (November 19, 2007)

Improvements/bugfixes:

2.8.1 (November 19, 2007)

Improvements/bugfixes:

2.8 (November 11, 2007)

New features:

Improvements/bugfixes:

2.7.16 (October 20, 2007)

Improvements/bugfixes:

2.7.15 (October 14, 2007)

Improvements/bugfixes:

2.7.14 (September 29, 2007)

Improvements/bugfixes:

2.7.13 (April 22, 2007)

Improvements/bugfixes:

2.7.12 (April 21, 2007)

Improvements/bugfixes:

2.7.11 (August 21, 2006)

Improvements/bugfixes:

2.7.10 (January 22, 2006)

Improvements/bugfixes:

2.7.9 (January 15, 2006)

Note: This update is only required for Macs with an Intel processor - it does not contain any code changes to the scripts.

2.7.8 (November 17, 2005)

Improvements/bugfixes:

2.7.7 (November 2, 2005)

New features:

Improvements/bugfixes:

2.7.6 (October 8, 2005)

Improvements/bugfixes:

2.7.5 (September 30, 2005)

New features:

Improvements/bugfixes:

2.7.4 (August 25, 2005)

Improvements/bugfixes:

2.7.3 (August 13, 2005)

Improvements/bugfixes:

2.7.2 (June 12, 2005)

Improvements/bugfixes:

2.7.1 (May 28, 2005)

New features:

Improvements/bugfixes:

2.7 (May 18, 2005)

Improvements/bugfixes:

2.6.5 (April 16, 2005)

New features:

Improvements/bugfixes:

2.6.4 (April 5, 2005)

New features:

Improvements/bugfixes:

2.6.3 (March 23, 2005)

New features:

Improvements/bugfixes:

2.6.2 (March 17, 2005)

Improvements/bugfixes:

2.6.1 (March 1, 2005)

Improvements/bugfixes:

2.6 (February 21, 2005)

New features:

Improvements/bugfixes:

2.5.4 (February 14, 2005)

Improvements/bugfixes:

2.5.3 (February 6, 2005)

Improvements/bugfixes:

2.5.2 (January 21, 2005)

New features:

Improvements/bugfixes:

2.5.1 (January 8, 2005)

Improvements/bugfixes:

2.5 (January 7, 2005)

New features:

Improvements/bugfixes:

2.4.3 (December 16, 2004)

Improvements/bugfixes:

2.4.2 (November 29, 2004)

New features:

Improvements/bugfixes:

2.4.1 (October 30, 2004)

Improvements/bugfixes:

2.4 (October 21, 2004)

New features:

Improvements/bugfixes:

2.3.2 (October 3, 2004)

Improvements/bugfixes:

2.3.1 (September 30, 2004)

Improvements/bugfixes:

2.3 (September 29, 2004)

New features:

Improvements/bugfixes:

2.2.5b - Maintenance Release (September 4, 2004)

Improvements/bugfixes:

2.2.5 (August 31, 2004)

Improvements/bugfixes:

2.2.4 (August 29, 2004)

Improvements/bugfixes:

2.2.3 (July 9, 2004)

Improvements/bugfixes:

2.2.2 (June 16, 2004)

New features:

Improvements/bugfixes:

2.2.1 (May 23, 2004)

New features:

Improvements/bugfixes:

2.2 (May 20, 2004)

New features:

Improvements/bugfixes:

2.1.7 (May 9, 2004)

Improvements/bugfixes:

2.1.6 (April 26, 2004)

New features:

Improvements/bugfixes:

2.1.5 (April 17, 2004)

New features:

Improvements/bugfixes:

2.1.4 (March 20, 2004)

New features:

Improvements/bugfixes:

2.1.3 (March 10, 2004)

Improvements/bugfixes:

2.1.2 (March 3, 2004)

Improvements/bugfixes:

2.1.1 (February 1, 2004)

Improvements/bugfixes:

2.1 (January 31, 2004)

New features:

2.0.2 (January 5, 2004)

New features:

Improvements/bugfixes:

2.0.1 (December 27, 2003)

Improvements/bugfixes:

2.0 (December 26, 2003)

New features:

Improvements/bugfixes:

1.3.7 (February 8, 2003)

Improvements/bugfixes:

1.3.6 (February 2, 2003)

New features:

Improvements/bugfixes:

1.3.5 (December 29, 2002)

Improvements/bugfixes:

1.3.4 (December 3, 2002)

Improvements/bugfixes:

1.3.3 (November 28, 2002)

New features:

Improvements/bugfixes:

1.3.2 (November 10, 2002)

New features:

Improvements/bugfixes:

1.3.1 (October 13, 2002)

Improvements/bugfixes:

1.3 (October 11, 2002)

New features:

Improvements/bugfixes:

1.2.2 (October 9, 2002)

Improvements/bugfixes:

1.2.1 (September 22, 2002)

Improvements/bugfixes:

1.2 (September 22, 2002)

New features:

Improvements/bugfixes:

1.1.1 (September 15, 2002)

Improvements/bugfixes:

1.1 (September 14, 2002)

New features:

Improvements/bugfixes:

1.0 (September 13, 2002)

Initial release ("Create Rule" & "Change SMTP Server")

Introduction | Features | Usage | Download | Version History
© 2002–2024 Andreas Amann — Contact — Send a Donation for Mail Scripts