Look for Scripts at:

Most are free! Even the shareware versions are worth a look.

Other Scripts can be found at:'sEmailerPage.html

Step by Step Lesson on using prepared AppleScripts.

You need to have AppleScripts installed on your computer to use scripts. AppleScript is free and is included with every MacOS. Check for AppleScriptLib in your Extensions Folder.

Dictionary of AppleScript

[Q] Where would I find a dictionary of AppleScript commands available for use with Emailer 2?

[A] The easiest answer is: Drop the icon of the Emailer application on the icon of your Script Editor. Alternate answer: In your Script Editor choose "open dictionary..." from the "File" Menu. Then in the following dialog navigate to your copy of the Emailer Application and open that.

Script Editor

[A] Launch your Script editor and load the Claris Emailer application into the editor as dictionary. You can do this with all other scriptable applications too. 

Probably the most popular script is W. John Carlsen's Internet & Email Scripts 1.2.5

"Get & Send Mail" launches Claris Emailer if it is not already running, opens a PPP connection if needed, tells Emailer to do a specified mail operation (preset to send pending outgoing mail and get new mail via the default account, but this is easily changed*), and then disconnect from PPP if appropriate.

There are 5 scripts included. There is only one "compiled script", for Emailer Schedules and the Emailer scripts menu. This goes into Emailer's AppleScripts folder.

There are 4 applets which can be run from the Finder (or indirectly via a QuicKeys, OneClick, or other macro utility, selected from "PPP Menu" or Launcher, or innumerable other ways with other utilities).

One applet simply opens PPP, another closes the connection, one launches Emailer and gets-sends email, and a similar one for Eudora (which doesn't have Schedules).

Adding "Get & Send Mail" to Startup Folder

In order to add "Get & Send Mail" to your "Startup Folder" you need an application version of the script (an applet) to work properly. The download package it comes in already includes a self-running applet version, for those who don't know how to make them from a simple compiled script. Putting it in the Startup Folder will cause Emailer to open and get-send your email on Mac startup.

AppleScript as Part of a Schedule

Execute an AppleScript Document for a Schedule

Claris Emailer allows you to execute an AppleScript document as part of a schedule. The AppleScript document can instruct Claris Emailer to connect to one or more accounts or services.

To install an AppleScript document:

1. Locate the AppleScripts folder inside the Claris Emailer Files folder.

2. Copy the AppleScript document into the folder.


To select an AppleScript document to execute at scheduled times:

1. From the Setup menu, select the Schedules menu item. The list of schedules is displayed.

2. Click the Add button to create a new schedule or select an existing schedule and click the Open button to edit an existing schedule. The schedule dialog box is displayed.

3. In the upper left side of the dialog box, select AppleScript from the Execute pop-up menu. A new pop-up menu listing the available AppleScripts is displayed below the Execute pop-up menu.

4. Choose the AppleScript to execute from the AppleScript pop-up menu.


Accents get garbled (é)

[Q] I exchange messages in French. When someone sends me a message, I see a little square instead of the letter with the accent.

[A] If you have only two or three such characters in one mail message it may be too much work to do something about it. But if you have received a big text with lots of such characters to change back, then you can use my "Search and Replace" AppleScript to change them all even in Emailer's window.

The script is of course free, but it *requires OS8* to work! You can find all my Emailer-Scripts to download at:

[A] Some of my correspondents are able to quote my words correctly, i.e. without destroying the accents. Others destroy the accents and I get the squares that you mention. If I take that altered text into, say, Tex-Edit, I can get the ASCII code for the squares. And I find that it is exactly 128 less than the code that I sent. To me this means that somewhere in the transmission of my message and its reply, the letters are being translated into 7-bit characters. Whether this happens in transit or is something that the responding mail program does, I do not know.

Bulk Exporter to separate text files

[Q] I've upgraded to version 2.0 from version 1.0 recently, only to find that one of the biggest pluses (the database vs. the separate files) is also the biggest negative for me.

With v2.0, you can apparently only export one file at a time to a text file. I receive hundreds of structured emails that are routed to a specific folder via Mail Actions. I then compile them into one file, which eventually goes into a spreadsheet. This was easy with version 1. It is nearly impossibly with version 2.

I have found an AppleScript which helps, but it is incredibly slow. Since I expect my inflow to reach the 1000's rather than 100's, this will be my last resort. Anyone seen a stand-alone v2 -> v1 converter or a bulk exporter, that is more efficient than AppleScript?

[A] If Eudora Mailbox format is acceptable (these are text files), you can easily do this by means of an AppleScript. You should probably try both Dan Crevier's ("Dan's Sample Scripts") and R. Shapiro's ("Import/Export 3.1") scripts that export from Emailer to the Eudora format. These scripts export a bunch of selected messages to a single text file. I haven't found them to be especially slow, but I guess it depends on what machine you're using and how many messages are being exported. You might be able to achieve a performance increase by going with a Frontier script. There's an "Export: As Eudora Mailbox..." script included with "Emailer Glue for Frontier & Emailer Extras v1.0a4", which is also available at the URL below.

The scripts are available at

[A] Give my "Save many to text" (or however I've called it) a try. It is pretty fast and does not have a max. limit of messages (OK, maybe memory is the limit). You can find all my Emailer-Scripts (Those scripts are free.) to download at:

Bulk Forward

[Q] I want to export / forward mail from Claris Emailer folders to a PC based email client (Pegasus, not Claris) for consolidation on PC. Easiest way is just to forward these by email. But there seems to be no way in CE of batching up messages to be forwarded to a single address. The forwarding address has to be entered for each and every message. Also the original email address of the sender is lost on some messages, retained on others (I don't know why).

Is there any Claris Script which handles this batch forwarding - or by creating a digest - which includes the address of the original sender?

[A] Use the script "Bulk Forward".

Changing "Reply-to"

[Q] Does anyone know if a script exists that would over-ride the "Reply-to" header when responding to a message. If possible, it would be a great addition when one wanted to reply to the author of a message on lists using reply to headers. I know you can manually cut and past the author into a new message, but this would be much more convenient.

[A] What I do is select the author's address from the attribution line and drag it to the address panel; then I delete the list address from the panel.

[A] I use the script "Misc - Reply using From" by R Shapiro, available at the Fog City site. Look for it under "Miscellaneous 3.1". From the Read Me:

This is like the usual "Reply" command, except it will always use the From address, even if the message has a Reply-To. This is handy for mailing lists which are configured to have Reply-To set to the list itself, when you want to reply to the sender instead.

Closing Modem Port

[Q] Is there an AppleScript or another application that can be filed in my Startup items folder that will close the modem port whenever my Mac is restarted?

[A] There is a little app called "CommCloser" that I know of that will close your modem connection.

[A] I tracked down an OSAX that has the appropriate commands, Serial Port Commands OSAX, then threw together a QND AppleScript that hangs up the modem:

set sPort to open serial port "Modem Port"

serial port write "+++" & return to sPort timeout 300

serial port write "ATH" & return to sPort timeout 300

close serial port sPort

It's not pretty, but it does the job. For those of you who are wondering, I asked the question above because, whenever I crash in the midst of a PPP connection (anyone using Navigator?), the SupraExpress modems (and any other modem, for all I know) will not disconnect when the Mac restarts. That means I have to reach around and disconnect the modem from the phone line (the SupraExpress plugs into the ADB port for power) to regain a dial tone. This AppleScript can go in the Apple Menu Items folder or, better yet, in the Startup Items folder.

Delete address from Group

Allen Watson's script to delete an address from a group without deleting them from the Address Book. Download here.

"Delete Highlighted" and "Trim to Highlighted" Scripts

To delete extraneous garbàge that you don't care to save; for instance, when you get a six-paragraph msg, but the only info you want to keep is in one paragraph. Another use of this would be to routinely delete signatures and/or list footers. I don't do this as often as I might, mind you, but over hundreds or thousands of messages, if one did this meticulously, it could cut down signficantly on the size of one's email archives. It'd also make searches go quicker. When I do this, I like to use David Cortright's "Delete Highlighted" and "Trim to Highlighted" scripts.

Emailer<->BBEdit scripts

To "annotate" received mail. I do this frequently. I'll get a list of comments or instructions from a client, and I might have questions or want to keep a record of the actions I took in response to a particular item. Note that in a case where I wanted to retain a "pristine" copy, I could make a copy of the message & annotate that. Normally, this isn't a concern of mine, though. For this kind of thing, I use R. Shapiro's Emailer<->BBEdit scripts, which are truly wonderful, IMO.

To correct or complete a URL. If I have a msg I want to save for reference, and it's got an incorrect or "partial" URL, that's really annoying ... so I fix it. I use R's scripts for this, too.

Extract Digests

[Q] I downloaded some AppleScripts which are supposed to extract the digests into individual messages. There are however three different kinds, extract heuristic, letterrip and rfc. They seem to all do the same thing, but there must be a difference somehow. Can someone please enlighten me on this.

[A] You are running Emailer 2.0v2 so since you haven't upgraded yet and you get the Emailer Digest, you need Extract Heuristic. Since version before 2.0v3, Emailer would strip the mime separators in Emailer making it impossible to burst the digest. Extract heuristic solved this problem but it is much slower than the others.

Extract rfc bursts standard digests (eg. The Evangelist). The extract LetterRip bursts digests created by LetterRip. You can find out what type of digest you have by looking at the long headers.

File Replies

[Q] I know that one can have replied to messages placed in the 'read folder' and that you can also auto-sort mail into folder. But is there any way to auto-sort after replied to? (So that all of my new e-mail is placed in the Inbox and as I reply to them, the messages leave the inbox and are put in the folders the belong in?

[A] There is an AppleScript called "File replies with originals" on the FogCity site (or did it come in the extra AppleScripts with Emailer??) It will move the replies to the same folder that the message you replied to resides in. Not sure if this is all that you are after though.

Finding Reply

[Q] Is it possible to see the reply I sent to a message without manually hunting it down?

[A] The script you want is 'Reveal Reply'. It will open any reply to a selected message whichever folder it is in.

Insert Time in mail

[Q] Is there anyway to put the current date and time into the body of an email without typing it in?

[A] You can use utilities like QuicKeys, OneClick, KeyQuencer, OtherMenu, TypeItForMe, Spell Catcher, etc. to make frequently typed text easily accessible.

There is also the AppleScript option which can also be modified to suit

your preferences ...02/08/98 18:20

To get something as simple as the above line, use ...

set theD to date string for (current date)

--requires "date string for" scripting addition

set theT to time string for (current date)

--requires "time string for" scripting addition

set totalStamp to ""

copy theD & tab & theT to totalStamp

tell application "Claris Emailer"

copy totalStamp to the selection

end tell

--Script by NT--


[A] Emailer will put the date and time in automatically at the top of the message if like. (On 02/08/98 5:45 PM (-0500), Don Juan ( wrote:

To activate it, go to Setup Menu->Preferences->Replies. Click on "Use Attribution Line When Quoting" and configure it the way you like.

Make a Duplicate Message

[Q] The solution to my problem is probably very simple, I just can not figure out how to do it: I want to have a message in two different folders, so I have to duplicate somehow. At present I forward it to myself, but there should be an easier way.

[A] Grab the clone message script from my web page. This script will duplicate a message for you. It works on both outgoing and incoming messages. Stick it in your script menu.'sEmailerPage.html

While you are there grab the "Steal a Sig".

[A] 2.0v3 has a duplicate command built in. Contextual menu contains a Duplicate command to make a copy in the same folder; no need for AppleScripts.

Merging Mail Databases

[Q] I have three different Macs running Emailer. How can I merge the three mail databases into one so that I can search all of the emails?

[A] Export all the messages to the same FileMaker database using Dan Crevier's and David Cortright's Emailer Archive package. A standalone version is available if you don't have FileMaker Pro 3 or later.

[A] I set the preferences so, that the messages are left on the server. So I read the new messages with all of them, but download it only with one, the one, I use as a database.

Organize AppleScript Menu

[Q] Is there a way to organize the AppleScript Menu? Right now, I have about thirty scripts which I would like to organize into categories but I don't see that the menu supports any hierarchy. I know that I can insert a separator but only one will work.

[A] If you use EmailTools , it has a script button that will allow you to organize your scripts.

[A] You can use OtherMenu or OSAMenu (Open ScriptingArchitecture) instead, which provide system wide hierarchal scripting menus.

Privacy Code

"Mailto" is available at

"Mailto" makes privacy convenient, using AppleScript to combine the power of Aladdin's DropStuff(tm), Phil Zimmermann's MacPGP public key encryption software and Claris Emailer. If you have a person to whom you regularly send encrypted files, "Mailto" reduces a cumbersome process to a one step drag and drop.

"Mailto" lives on your desktop waiting for files and folders to be dropped on to it. The applet will call on DropStuff to stuff the items to a single archive, MacPGP to encrypt the archive with the recipient's pgp public key, and Emailer to create a memo to the recipient with the encrypted archive attached.

As posted,"Mailto" is set up to send encrypted files to Vitamin Floyd, Simply rename "Mailto" for your recipient and change the following three lines at the beginning of the script

set the_name to "Vitamin Floyd"

set the_address to ""

set public_key to "Vitamin Floyd <>"


set the_name to "Your Recipient"

set the_address to ""

set public_key to "Your Recipient <>"

Save the renamed "Mailto" on your desktop where it will be convenient to drop items on it, and it is ready for use. "Mailto" is compatible with Emailer 2.0 and 1.1x . is a working address that I maintain for "Mailto" testing among other things.

Redirect Mail

[Q] Can anybody tell me how to do a redirection of mail by AppleScript? I see the command in the AppleScript directory, but when I execute this in a script, the address remain empty. I was simply trying to write : redirect 'themessage' to group 'so and so'.

You can't redirect to a group. Here's a redirect script I wrote that redirects to a fixed address; it shouldn't be too hard to modify it to redirect to an address book contact entry. To redirect it to a group, though, you'd have to build a list of contacts from the group.

tell application "Claris Emailer"

if the class of the front window is incoming message window then

set theMessageLIst to {} & the displayed message of the front window

else if the class of the front window is browser window then

set theMessageLIst to the selection


display dialog ¬

"You must have an incoming message or a browser as the front window." buttons {"OK"} default button 1


end if

set theRecipient to {address:{display name:"Spam Sink", address:""}}

repeat with theMessage in theMessageLIst

if the class of theMessage is incoming message then

redirect theMessage to theRecipient

set the read status of theMessage to read

move theMessage to the deleted mail folder

end if

end repeat

connect to "michelle" with sending and checking without TCP control

end tell

Script by: Michelle Steiner

Signature File

[Q] I have a text file which contains numerous quotes which I would like to use with Emailer. Is there any way to get them into Emailer-compatible signature files without having to create a separate one for each quote? I don't have an AppleScript in my collection which will do that. Is there one on Fog City I didn't see?

[A] Emailer 2.0 will let you have as many sigs as you want, in one file; 1.x lets you have only one sig.

You can format that file any way you like; I'd use a file that separates signatures with carriage returns, and the name from the body of a signature with a tab. Once you do that, run this script:

set theFile to choose file with prompt "Choose a file to import signatures from" of type {"TEXT"}

open for access theFile without write permission

set theData to read theFile

close access theFile

tell application "Claris Emailer"

repeat with loop from 1 to (count theData each paragraph) - 1

set theSig to paragraph loop of theData

set theTab to the offset of tab in theSig

set theName to characters 1 through (theTab - 1) of theSig as text

set theContent to characters (theTab + 1) through -1 of theSig as text

make new signature with properties {name:theName, contents:theContent}

end repeat

end tell

--Script by Michelle Steiner--



[Q] On Emailer 2.0v3, when I create a standard message that I want to save for future/repeated use, I use the "Save As Draft" to save it (thinking that is what it is for). Obviously it's not the solution. What do I need?

[A] Use the Generate Template AppleScript at the Fog City site. Create your template, select Generate Template from the Emailer AppleScript menu (after you install the script!). You will be prompted for a location to save the template. After saving move the template script into your Emailer AppleScript's folder, restart Emailer and you can now create the template anytime you want.

Unwrap script V1.1

Unwrap script V1.1 removes all forced line endings except between paragraphs, so that each paragraph will then "soft" wrap to the window width. This script does not alter any quoted material (lines starting with ">").

By Allen Watson <>, modified from script by (?), copied from an Email message. Utilizes the amazing search/replace routine, "austauschen," by Sascha Welter <>.

More Info:

For those of you interested in a basic intro. to AppleScript, David Cortright has written an article that appears in the March AppleWizards e-zine. Even experienced scripters might find the examples interesting.

New to AppleScripts? Check out the AppleScript Web site. Just click on

1. What are AppleScripts?

AppleScript is a language created by Apple Computer and is used by the MacOS (Macintosh Operating System) to control the actions of scriptable applications and to transfer information between applications, or between computers, or between networks, or between you and the computer. To find out more about AppleScript visit Apple's "New to AppleScript"

2. How do I install AppleScripts?

To install an AppleScript, all you have to do is drag the script to the AppleScripts folder in the Claris Emailer Files folder. If the application is open you must quit and re-launch Emailer to use the scripts.

3. How can I create AppleScripts?

First you must have Apple's Script Editor which is available for free and is included with every MacOS. It is located in the "Apple Extras" folder. Then you must learn AppleScript. There are many books available on AppleScript. The following can be ordered from
AppleScript For Dummiescover Danny Goodman's Applescript Handbook cover
Applescript Scripting Additions Guide cover AppleScript for the Internet: Visual... cover

Out of Print/hard to find

Applied Mac Scripting

AppleScript Applications : Building Applications With Facespan and AppleScript

AppleScript Language Guide (Apple Computer)


Highlights Index