New Messege

I was wondering if anyone knew of an applescript that I could put in my “speekable items” folder that would allow me to create a new messege in thunderbird when I said “Send new e-mail”?

Any help or suggestions would be awsome!
Thanks in advance,
Doug

Hi Doug,

You can use ‘open location’ and “mailto:” as the url.

open location “mailto:”

this opens a new blank message in your default email app. You can add stuff to the url to fill in the subject, to, etc.

gl,

Ok cool… Thanks alot for the Help!
~ Doug

Hi Doug,

I was doing some review on this. Here’s an example of filling in the fields.

set the_address to “somebody@somewhere.com
set the_subject to “Hello”
set the_content to "Hi,

How are you? I’m fine.

Bye,
Me"
tell application “Mail”
launch
activate
open location “mailto:” & the_address & ¬
“?” & “subject=” & the_subject & ¬
“&” & “body=” & the_content
end tell

This uses Mail.app as an example if Mail wasn’t your default emailer. Mail is scriptable, so you could just script it, but I don’t know if Thunderbird is scriptable so something like this might work. You can search the net for more examples on filling in more fields.

gl,

Works in Eudora 6.x

oh… cool thanks alot for the help guys! Ill try it out in FF.
~ Doug

i tried the script in mail… mail opened up but then I got an error that says “Mail was unable to open the URL “(null)”. No associated application could be found.”

Any thoughts on why this might be happening?
~ Doug

Hi Doug,

I’m using the older version of Mail, but I was reading that there was a lot of changes in Tiger Mail. It’s scriptable, but you could use the mailto form using the GetURL maybe.

set the_address to "somebody@somewhere.com"
set the_subject to "Hello"
set the_content to "Hi,

How are you? I'm fine.

Bye,
Me"
tell application "Mail"
	launch
	activate
	GetURL "mailto:" & the_address & ¬
		"?" & "subject=" & the_subject & ¬
		"&" & "body=" & the_content
end tell

There’s also a ‘mailto’ command. I haven’t tried using that.

gl,

That works… thanks alot for the help! means alot.
Take Care,
Doug