Eudora's has the ability to be scripted such that repetitive tasks can be automated using AppleScript. Many, but not all, of Eudora's functions can be accessed allowing the user to create messages, check mail, as well as change settings from simple scripts.
Note: This document assumes the user is using Eudora 1.5.1 or Eudora 2.1.1 or higher. Previous versions handled scripting differently.
AppleScript Dictionary
--------------------------
The commands that Eudora uses from AppleScript are documented in Eudora's AppleScript Dictionary; use the Script Editor to Open Dictionary and then choose Eudora. The commands will be listed as well as the parameters that they accept.
Standard Commands
--------------------
The simplest commands allow the user to create a new message, enter text (or extract text from a message), check for new mail, as well as message manipulations (transfer, forward, reply, etc.).
A script can tell Eudora to connect to the POP or SMTP server using the command:
connect
If no options are specified, the defaults from the Settings are used.
The options are: with sending (without sending) which sends queued messages,
with checking (without checking) which checks for mail, and with waiting
(without waiting) which waits until Eudora is idle before connecting.
If you want to launch Eudora from a script, you must have the Scriptable Finder (included with System 7.5 and System 7 Pro). You would use the following syntax:
tell application "Finder"
open {"Macintosh HD:Eudora Folder:Eudora" as alias}
end tell
If you want to open a particular settings file, the syntax would be identical, but you would substitute in the name and location of your settings file in the above example.
In order to attach documents to a message via AppleScript, you must have the full path name of the file(s) to attach. Use the following format:
-- Attach file called "Macintosh HD:myFile" to current message
set theName to "Macintosh HD: myFile"
attach to message 0 documents {theName}
You can attach several files to a message either by issuing multiple attach commands or specifying more than one filename in the {theName} section as follows:
With incoming messages, you can use many of the same types of commands as with the outgoing messages, but you can only get information, i.e. to get the subject of the message, you would use:
get field "subject" of message 0
-or-
set myField to field "subject" of message 0
This can be done for the following fields: "to", "cc", "from", "subject", "" (body), and priority.
In addition you, can show all the header information (the Blah, Blah, Blah button) using:
set show all headers of message 0 to true
Messages can be forwarded, redirected, replied to, or transferred to a specific mailbox. Here's the syntax:
-- Forwards a message quoting the entire message;
-- A new message is created without a recipient
forward message 0
-- Redirects a message
-- A new message is created without a recipient
redirect message 0
-- Replies to a message
-- If you don't specify additional options, the default options
-- (i.e. reply to all, etc.) will be used. The additional options
-- are: with quoting (without quoting), with everyone (without
You can change many of Eudora's settings via a script. In order to do so, you must know the number of the setting you want to change. This information can be found in the Eudora Q&A stack which is location at:
Eudora allows you the ability to notify an AppleScript when certain actions occur.
For example, you can have it notify your paging application that new mail has arrived so that you are paged.
You should not use the notification events from a script run from the Script Editor; this will cause Eudora to notify the Script Editor and not your script. Your script should be saved as an application and then it can be properly notified. In order to simplify the using notification, you should obtain the Notify-Kit which can be found at:
This kit has scripts in it that allow you to drop your script onto them and either start or stop the notification. It also contains a sample script on what types of notifications are available, i.e. notify when mail is sent, mail arrives, is about to connect, or has finished connecting.
If you need more help about scripting, you can join the Mac Scripting mailing list by sending email to: LISTSERV@DARTCMS1.DARTMOUTH.EDU with no subject line and the body of your message as follows: SUB MACSCRPT Your Name. If you want to remove yourself from the list, send email to the same address with the body as follows: SIGNOFF MACSCRPT
If you are a user of the commercial version of Eudora, you can contact technical support for further assistance. Freeware users should consult various newsgroup that discuss scripting or use the mailing list indicated above.