(This joke is only funny if you read rec.games.bolo on a regular basis.)



Editing & Cleaning

Download this package (ca. 170k)


Stupefy Quotes, ..., etc.

If you're exchanging mail with some non-Mac-users (or maybe non-MIME-users) they could get garbage characters when they should receive curly quotes, ellipsis (the three points ... in one character), typographic ligatures (eg kind of a merged f and i).

This will be especially usefull, when you paste text from a word processor or layout program into Emailer. The script is fast because of the search/replace-routine that employs "text item delimiters". I'm holy proud about this routine I came up with myself.

Save messages before using.
This script is only usefull with OS8.


Stupefy Umlauts

Somehow the same as the "Curly Quotes"-Script, but this one will convert german (and one swedish) Umlaut (äöüÄÖÜÅ) to accepted ASCII counterparts (ä -> ae, ü -> ue ...).

This script is especially usefull, if you:

  • Happen to use Emailer with Compuserve where Emailer will mistakenly convert Umlauts to their straight ASCII counterparts (ö -> o, while it should be oe). (As a sidenote, Compuserve is finally capable of using Umlauts correctly, just Emailer does not know about it yet.)
  • Exchange mail with germans in parts where keyboards and charactersets lack Umlauts.

The script is fast because of the search/replace-routine that employs "text item delimiters". I'm holy proud about this routine I came up with myself.

Save messages before using.
This script is only usefull with OS8.


Search/replace stuff

(requires OS8)

This script was made to clean up messy messages in the first place, but it's usefull for other purposes too. It allows for searching/replacing in open messages (incoming and outgoing).
For outgoing messages, you should save the message before working on it (press Command-S).

When you close the message window after changing anything with this script you will be promptet if you want to save changes. In case you made a mistake with this script, you can alway click on "no" to undo any changes.
The script lets you have your default search/replace strings, in case you always get the same kind of messed up messages.
When you hit the "Set Def." Button in the Dialogs, it will enter your string as Default and go on with it's job with that string. "Cancel" will always cancel the process of the Script.
You can type in "return" or "cr/lf" for special search strings.
But you have to type it in exactly like that (without the quotes of course) and you can not mix these with other text (eg "Greturn" will not search for a "G" and a return).

This new Version v1.1 will search/replace only in the selection if any text is selected.


Hard Linewraps

(requires OS8)

The script will place hard linewraps at a maximum Linelength which you can tell it.
You also get the chance to use custom line-wraps. This allows to set it to use cr/lf (return & linefeed for DOS) line endings, or have some spaces inserted in front of each new line.

For example with "\    " (Backslash and 4 spaces) inserted into the custom wrap dialog box you get 4 spaces in front of each line.
(You'll enter a Backslash for a return followed or preceded by other characters.)
The setting for the maximum line length will remain for the next run of the script, while the custom line ending setting can be set to be used as default, so it will come up again, when you re-run the script.

You can use the script on open incoming or outgoing messages. For outgoing messages, you should save the message before working on it (press Command-S).

When you close the message window after changing anything with this script you will be promptet if you want to save changes. In case you made a mistake with this script, you can alway click on "no" to undo any changes.


Wrap Number Selection

Requires OS 8

I use this script when I want to number paragraphs. It does not do the numbering, but it helps with nice formatting and wrapping the paragraphs.

You can tell the script the maximum line-lenght you want (maximum 75 - those space characters) and how many space characters you want to the left of the paragraphs (and that are needed to format for the numbering).

The Script will always remember your last settings.

If you do your numbering by typing (example) "a." and then a tab, then a setting of 5 spaces will always do, as entering a tab in Emailer will jump to the next 5-Space-Line.

Save your message before running the script.


The Table-Tool!

You type in your table with *two spaces* to separate each columns. (This would allow for "cells" of more than one word with a space between words.)


Brand  Quality  Ease-of-use  Price
-----  -------  -----------  -----
Mac  *****  *****  $1800
Toshiba  **  -  $1500
Compaq  *  -  $1700
Olivetti  -    Lira 120000
Save the message before doing anything to it. Then you select the whole table and run the script on it:

Brand          Quality        Ease-of-use              Price
-----          -------        -----------              -----
Mac            *****          *****                    $1800
Toshiba        **             -                         $500
Compaq         *              -                        $1700
Olivetti       -                                 Lira 120000
The script asks you for the place for each column (that's 15 characters for the first column, 30 for the second, 60 for the third in our example) and if you want each column to be left- or right-justified.

Left justified on 30 means that the script will match the cell to be starting from the 30th character and go to the right. Right justified would be to be, well, add enough spaces, so the right end of the cell will end up at the 30th character ... ok, kind of like that.

The first column is always at the start of the line and left justified.

You may have noticed that the example has more than two columns, the script will do any number of columns, as long as each line has the same number of columns.


Universal Glossary


The “Universal Glossary" Script lets you have a glossary file with as many entries as you want - growing as you work, without any need to restart Emailer.

You can add and delete glossary entries on the go. You can get a listing of all your abbreviations and glossary entries.

The Interface is simple. (Interface? What Interface ... it's just one dialog box!)

The glossary is kept inside the script, but is also backuped to a text file for security reasons. This lets you have a Glossary to put frequent used pieces of text into your mail messages.


Replying & Receiving

Download this package (ca. 100k)

Reply to Emailer-Talk v1.1

I subscribe to the Emailer-Talk mailing-list which happens to be not using a reply-to-header. So when you hit the "reply"-Button in Emailer your reply will always go to the list and to the messages author. This way the author gets the reply twice.
I don't like to get replys twice, so I started to use this script myself. It will automatically reply only to Emailer-Talk, if that Email-Adress is one of the recipients of the original message.

(If you have set Emailer to give you a choice of replying to all recipients or just the sender, then you still have to hit the return button, when that dialog pops up.)

I hope every one replying to my messages on Emailer-Talk will use this script, so I don't get every reply twice ... ;?)
Based on a script by R.Shapiro.


Reply to exact account

A script to use with Claris Emailer 2.0 - this script is made to be run from a mail-action (but will work for testing purposes on open incoming messages).
It will auto-reply to the messages that have been filtered out. The reply will be sent from the account that the message was sent to, even if that account is an "alias address".

(This script was written, because using the standard auto-reply feature of Emailer would become messed up, when you have an account that is an "alias" to another account, like eg. sales@msn.com is an alias of billyG@msn.com.
When messages would arrive "To: sales@msn.com" they would indeed come in from the mailbox "billyG@msn.com" (because the mailserver is delivering them this way).
Now Emailers auto-reply would assume that the message was meant for the account that is set up for billyG@msn.com and reply using that account.

Using this script instead of the normal auto-reply feature will cure this. If you don't know what this is all about, then you probably don't need this script.
To reduce bloat, the text of the messages, the email-addresses and account names are stored in the script code and have to be edited here. Also you can set a switch if the original message is to be apended to the reply (and with short or long headers.) There is another switch and settings for adding a signature of choice, all set inside the script code.


Reply in same folder

This is a hack of an original Script by R.Shapiro.

It will create a reply and move the reply to the same folder the original message was in.
This is done in order to have replys you sent out to remain in the same folder as the original messages folder.


°Gurgle HTML-Messages

Some DooDz out there send out E-mail with html-code in the message. On Emailer-Talk, some people requested a more automated way to deal with these messages. Here is it.

You can use the script in two ways:

  1. Set it up as a mail-action (that checks for "<html>" in the message body
  2. Run it on any incoming message(s) open or in the browser (via David Cortrights great "getSelectedMessages" routine incorporated into the script).

The AppleScript will place the content of the message in a new file in a folder called "Temporary HTML-Files" on your desktop.
The files have unique filenames derived from the subject-line. The folder will be created automagically if it isn't there (so you can safely trash it when no longer needed - but it will reuse the same folder if it's still there).
It puts the creator type of Netscape Navigator on the files, so you can double click them to open in the browser.

The subject, from:, to: and other header information are not carried over to the new file.


°Gurgle HTML-Enclosures

This Script will open attached files with Netscape under some conditions:
  1. File Endings must be pointing to HTML-Files (you can customize the list of endings)
  2. Must be text files (that is, with a file type of "TEXT"


Saving & Copying

Download this package (ca. 80k)


Copy Headers

Ever wrote to someone: "I got 127 messages about swiss chocolate from them, which ones do you want?" This quick hack will extract headers of messages you have selected and put them in a new message.

(The new message is in the trash folder and is set to not scheduled, so it wont be accidentally sent anywhere.)


Save many to text

This script will save any number of messages that are selected in a browser window into a combined text file.
There is no size limit (how many messages you can save) other than harddisk space.

It's fast too.


Emailer move to ClarisWorks


This script will take messages you have selected in Emailers Browser window and move them to ClarisWorks 5.0.
If there is an open text document in ClarisWorks, it will past the messages at the insertion point, if not it will make a new text document.

Requires Version 5.0 of ClarisWorks because there was no real AppleScript support prior to that.


Dated Messages

Download this package (ca. 105k)

Two scripts that let you send messages on pre-specified dates.

Like you write today (June 12th, 1997) a message to some of your customers that you want to be delivered on december 24th and another message on your customers birthday on september 22nd.

(The idea for the implementation of this solution comes from Martin Schiller. He asked for it on Emailer-Talk, so this is the answer.
It is a lesson in: "Ask the exact question (how exactly you want it to be) and you will get it!")

Dated Messages consists of two scripts:

"send this msg dated"

You run this script on an outgoing message (or a selection in the browser window which happens to be an outgoing message). The script will prompt you for a date to send the message.
It then goes to create a sub-folder in your "Dated" folder and sets the name of that folder to the short version of the date you want to send the message (eg US: 3/16/1998, European: 16.3.1997). If a folder with that date already exists, it will not create a new one.

The script then stores your message in that folder and sets the message for not-scheduled, so it will not be sent until it should.

Save messages before using (when it happens to be an open message).

"Process Dated Messages"

Generate a "Schedule" in Claris Emailer (look in the manual if you don't know how) and set the action for that schedule to execute this applescript.
The script must be in the folder "AppleScripts" in your "Emailer Files"-Folder and you will have to restart Emailer to have it recognised.

Set that schedule to execute ...
- with every startup of Claris Emailer (you have to set this in the Preferences of Emailer) or - (if you leave Emailer and your Mac running all the time) set the schedule to execute once a day in the morning (like 1 AM) (This is not critical, the code of the script will be executed just once a day.)

What the script does:
It checks if there is a folder which is named with a date that is today or older. It moves any messages in that folder to the out box folder (no matter how that's named) and sets the status of those messages to scheduled.
It then goes back to the dated folder and deletes those folders if they are empty.
The script does not send any messages or connect to any servers. You have to do that by hand or with another schedule.


Your comments

I appreciate your comments on these scripts (or on whatever), drop me a line:

Sascha Welter <swelter@mus.ch>


Other Emailerscript Sources

There are some other places with Emailerscripts around, check them out, they may have what you need:

  • Fog City, huge site with lots of scripts
  • Tim Bates Emailerscript page
  • W. John Carlsens page with scripts that let you automatically connect with PPP (these scripts won't close the PPP connection if it was open when you started the script. Way cool, I use this miself!)
  • If you feel like your site has been left out, just tell me so and I'll add it here.


Back home (english) - Zurück zur homepage (deutsch)

Back to my AppleScript-page - Zurück zu meiner AppleScript-Seite