Ta, ta!!!! It works!!!!!!!!!!
I just made it crash myself with my "display dialog" debugging, but that helped me a lot to figure out a very fine bug!! I'm proud of myself 8) 8)
Ok:
Attention, please! Here's a final public alpha (:lol: ) release of the script for Thunderbird mail client, made in close collaboration with flip (need to know your real name, for such serious things!

)
README:
Works only with the latest Thunderbird nightly build (1.6a1 built after 15th of February)
Known issues:
- will fail if Thunderbird is already running (launches a second copy and fails). This is very difficult to fix (if at all possible)
- while attaching multiple files for the email command, will not include the first one (in alphabetical order). It doesn't concern the email&compress command (all files are correctly included and compressed in one archive). This should be fixed inside PF (not my fault :roll: ) This issue is the same for all email clients actually
- will maybe have problems if you have some difficult non-ASCII names or strange path to your files
HOWTO:
Until it will be included in one or other form in PF installation, you should copy and paste the text below into the AppleScript Editor, save it as mail_send_message.scpt and replace the original script of the same name (make a backup first just in case) inside the Path Finder.app/Contents/Frameworks/CocoatechAppleScript.framework/Versions/A/Resources/Scripts
The software is provided as is, without any warranty and blah, blah...You can modify it as you like (Am I looking professional? 8) :lol:
Ok, enjoy:
Code:
on send_mail(email_subject, email_message, email_sender, email_recipient, email_files)
try
set thunderbird_bin to "/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose "
set email_subject to "subject=" & email_subject
set email_recipient to "to=" & email_recipient
set email_message to "body=" & email_message
set attachments to "attachment='"
repeat with a_file in email_files
if a_file as string is (last item of email_files) then
set attachments to attachments & "file://" & a_file
else
set attachments to attachments & "file://" & a_file & ","
end if
end repeat
set arguments to email_subject & "," & email_recipient & "," & email_message & "," & attachments & "'"
do shell script thunderbird_bin & quoted form of arguments
on error error_message number error_number
log error_message & " " & error_number
end try
end send_mail