Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Automate sending attachment in Thunderbird Apps
As I prefer Thunderbird over Apple Mail, due to it's better handling of things like status-notifications and the like, it has always bothered me that I could not select a file in the Finder and have it being used as an attachment for Thunderbird.

However, I have found a solution. It is still basic, and it may need some fine-tuning.

In Automator, create a new workflow with the following actions:
  • Quit Application -- choose Thunderbird
  • Get Selected Finder Items
  • Run Shell Script -- Choose Shell: /bin/bash and Pass input as arguments, then enter the following script:
      for f in "$@"
      do
        /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose attachment="file:///$f" > /dev/null 2>&1 &
      done
  • Save the workflow with a name like 'Mailme' and you are done.
  • You can now select a Finder item and have it attached to a new mail message in Thunderbird.


[crarko adds: I haven't tested this one. If you spot any errors or improvements please note them in the comments.]
    •    
  • Currently 1.83 / 5
  You rated: 2 / 5 (6 votes cast)
 
[8,673 views]  

Automate sending attachment in Thunderbird | 6 comments | Create New Account
Click here to return to the 'Automate sending attachment in Thunderbird' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automate sending attachment in Thunderbird
Authored by: beemer226 on Oct 30, '10 02:09:30AM

I got the script to work properly, but it does not remove items that I have removed from the Documents folder. Is it supposed to?



[ Reply to This | # ]
Automate sending attachment in Thunderbird
Authored by: Nomis101 on Oct 30, '10 09:04:35AM

I also prefer Thunderbird, but the 'compose' command doesn't work for me if Thunderbird is still running (Mozilla Bug 469990). For a service that works for me if TB is closed or running, see: https://bugzilla.mozilla.org/show_bug.cgi?id=606918
And for a PDF Service, see: https://bugzilla.mozilla.org/show_bug.cgi?id=606919
Both of them make use of "open -a". But, keep in mind, "open -a" currently only works with TB trunk builds or with a own build that contains the patch from https://bugzilla.mozilla.org/show_bug.cgi?id=287345



[ Reply to This | # ]
Automate sending attachment in Thunderbird
Authored by: PhilHudson on Apr 27, '12 06:49:05AM

I can confirm that the PDF Service linked to above (at https://bugzilla.mozilla.org/show_bug.cgi?id=606919) now works 'out of the box' with stock Thunderbird, no patching or special build required, with the caveat that it only seems to work if TB is already running.



[ Reply to This | # ]
Automate sending attachment in Thunderbird
Authored by: lsloan on Nov 03, '10 06:45:39AM

This would be cool if it didn't need to quit Thunderbird first.

I find it quite easy to start composing a message in Thunderbird (TB), then anytime before I send the message, I switch back to the Finder. From there, I drag the file(s) I want to send to the TB compose window and drop them. They get attached immediately. The TB compose window doesn't need to be in the foreground or even completely visible. Just having a portion of it visible is sufficient.

---
Lance E Sloan



[ Reply to This | # ]
Automate sending attachment in Thunderbird
Authored by: harges on Nov 16, '10 10:05:04AM
Can't you just drag files onto its icon in the dock? Postbox (which is like Thunderbird on steroids) works that way. Drag files onto its icon and it'll throw up a new message window with those files in place as attachments. You can also use "Open With…" in the Finder's contextual menu and Postbox will open a new message with the selected files as and attachment.

[ Reply to This | # ]
Automate sending attachment in Thunderbird
Authored by: lsloan on Nov 17, '10 06:32:45AM

Thunderbird doesn't let me drop any file icons onto it, at least not any of the ones I want to send, like JPG, PDF, or CSV.

Thanks for the Postbox suggestion. I see that PB is free, but with limited features; the full version costs money. I like TB because it's free and it has extensions to let me add extensions to get features that I want. I'll check out PB, though.

---
Lance E Sloan



[ Reply to This | # ]