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
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.
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
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.