default Mail Application

Hi
can me tell sombody how I can read out the default Mail Application in Mac OS 8/9?
When I open a Mail-Link from Desktop or somewhere else the default Mail App starts, so I think there has to be a way to use this also in AppleScript.
thanks for help
Philipp

: Hi

: can me tell sombody how I can read out the default Mail
: Application in Mac OS 8/9?

: When I open a Mail-Link from Desktop or somewhere else the
: default Mail App starts, so I think there has to be a way to
: use this also in AppleScript.

: thanks for help

: Philipp

open location “mailto:someone@somewhere.not

This will (should) activate the default email application and create a news message to someone@somewhere.not just like opening a mail-link on the desktop.

The “Mail” icon that comes with the OS (in the Apple Menu->Internet Access) is an AppleScript and launches the default email application sans new message. It says it uses the Internet Scripting OSAX, but that’s not installed on my system and the script still works using the raw event codes. Looks like this:

on run
    openMail()
end run

on openMail()
    set OKButton to "OK"
    --most error messages should be handled by the OSAX itself:
    set generalErrorMessage to "Your Internet software is not configured correctly.  " & ¬
        "Please use the Mac OS installer to re-install your Internet software."
    try
        «event GURLMAIL» with «class errr»
    on error errorMessage number errorNumber
        if errorNumber = -1708 then
            display dialog generalErrorMessage & return & return & ¬
                " (Error number: " & errorNumber & ")" buttons [OKButton] default button OKButton
        end if
    end try
end openMail