Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HeadNorth

macrumors newbie
Original poster
Feb 21, 2024
7
0
Hi there. After 30 yrs of Windows I just got my first MacBook Pro. So far so good, but it is a bit of a learning curve. So, I'm hoping to glean some information and help from the community here as I make the transition.

With the time I've spent in the Windows environment, I have certain programs that I'm used to and want to continue using. Thunderbird is one of those. I've got two issues related to Thunderbird that I'm trying to resolve.

1. It's up and running fine in Sonoma, sending and receiving as it should... except when I'm in Libre Office and want to send a document that I'm working on using the "File > Send > Email Document" command from the File menu. When I attempt to do this, the native Mail app opens instead of Thunderbird. Is there a way to get Thunderbird to be the app that opens?

2. Also, when attempting to share a file from the Finder, Thunderbird is not an available option. When I select "Edit Extensions", the Thunderbird icon shows in the list but there is no check box next to it so I can not select it as a sharing option. Is there a way I can make Thunderbird a usable option for sharing?

Thanks for your help!
 
Thanks. I should have mentioned that I already have Thunderbird.app selected as default email reader in the Mail app settings. I have gotten that far but no farther.
 
Try LibreOffice – Preferences (⌘,) - Internet – Email select /Applications/Thunderbird.app/ and Apply.
 
Ok. So, that does open the Thunderbird app now but does not open the email composition window or attach the document to an email. It does however open another copy of the document.

Thanks for your efforts here. I do appreciate the help.
 
Instead of /Applications/Thunderbird.app/, try with /Applications/Thunderbird.app/Contents/MacOS/thunderbird
It's working in Monterey.
 
  • Like
Reactions: sgtaylor5
That did it! Thank you for your help on this.

Any thoughts on the other issue regarding having Thunderbird as a Share option?
 
Thanks for looking into this. Yes, if it's not too much trouble, if there's a way around this limitation that would allow TB to be a share option, I would like to know. I'm guessing other TB users coming from Windows would benefit as well. Thanks again.
 
Open Automator (/Applications/Automator) – New - QuickAction – Workflow receives “files or folders” – in Finder – in the left search box enter AppleScript and drag “Run AppleScript” into the right side, copy-paste the code:

AppleScript:
on run
    tell application "Finder"
        set finderitems to (selection as list)
    end tell
    set filepaths to {}
    repeat with finderitem in finderitems
        set iteminfo to info for (finderitem as alias)
        if not folder of iteminfo then
            set filepaths to filepaths & (POSIX path of (finderitem as Unicode text))
        end if
    end repeat
    my send_mail(filepaths)
end run

on send_mail(email_files)
    try
        set thunderbird_bin to "/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose "
        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 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

Save as SendWithThunderbird (or some other name). Now, when you select one or more files in Finder, right-click and from the Quick Action menu select SendWithThunderbird. A new message will be created in Thunderbird with the files attached.

How the QuickAction should look in Automator
SendWithThunderbird.jpg
Apple’s documentation: Create a workflow in Automator on Mac https://support.apple.com/guide/automator/aut7cac58839/mac
 
  • Like
Reactions: zevrix
Works great! And I learned something new. Didn't know about the Automater. Thanks so much.
 
Glad it works. I forgot to mention something, you can assign a shortcut, like ⌘S, to the QuickAction in System Settings – Keyboard – Keyboard Shortcuts – Services – Files and Folders - SendWithThunderbird
 
Glad it works. I forgot to mention something, you can assign a shortcut, like ⌘S, to the QuickAction in System Settings – Keyboard – Keyboard Shortcuts – Services – Files and Folders - SendWithThunderbird
your fix worked great however i have a similar issue and no solution. perhaps you can assist.

i have ms word installed.
i use thunderbird for email client

when i try to share the document by email i get option to send by email or box with arrow (see pictures bellow)

send by email is supposed to open thunderbirds mail composition window with the document attached - it does not

box with arrow open small extension window for me to select program but there is no thunderbird mail extension

im guessing both of these mechanisms do not work because there is no official thunderbird extension made.

what can i do? can you assist?

please see pictures bellow

Thank you Very Very much in advance
 

Attachments

  • Greenshot 2024-06-06 23.54.26.png
    Greenshot 2024-06-06 23.54.26.png
    130.8 KB · Views: 51
  • Greenshot 2024-06-06 23.55.10.png
    Greenshot 2024-06-06 23.55.10.png
    149.1 KB · Views: 50
  • Greenshot 2024-06-06 23.58.27.png
    Greenshot 2024-06-06 23.58.27.png
    338.9 KB · Views: 50
  • Greenshot 2024-06-06 23.56.43.png
    Greenshot 2024-06-06 23.56.43.png
    582.6 KB · Views: 47
  • Greenshot 2024-06-07 00.00.46.png
    Greenshot 2024-06-07 00.00.46.png
    814 KB · Views: 61
applescript get path of word document
i have ms word installed.
i use thunderbird for email client

For Microsoft Word you can use this solution:

AppleScript:
on run {input, parameters}
    tell application "Microsoft Word"
        tell active document
            set docPathPosix to its posix full name
        end tell
    end tell
    do shell script "/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose attachment=file://" & (quoted form of docPathPosix)
end run

Send_From_Microsoft_Word.jpg

You can set Command+Control+S (⌘⌃S) as a shortcut and when you use it in Word the script will get the path of the currently active document and attach it in a new Thunderbird e-mail.

Credit for the path script: ccstone https://forum.keyboardmaestro.com/t...ont-document-in-the-front-application/7095/22
 
applescript get path of word document


For Microsoft Word you can use this solution:

AppleScript:
on run {input, parameters}
    tell application "Microsoft Word"
        tell active document
            set docPathPosix to its posix full name
        end tell
    end tell
    do shell script "/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin -compose attachment=file://" & (quoted form of docPathPosix)
end run

View attachment 2385912

You can set Command+Control+S (⌘⌃S) as a shortcut and when you use it in Word the script will get the path of the currently active document and attach it in a new Thunderbird e-mail.

Credit for the path script: ccstone https://forum.keyboardmaestro.com/t...ont-document-in-the-front-application/7095/22
Got it. it works. thank you. anyway add this functinality as an extension?
 
Got it. it works. thank you. anyway add this functinality as an extension?
I don’t know how to make it into an extension, but in Sonoma you can use the same script in a shortcut made with the Shortcuts app and enable “Show in Share Sheet”. Also, enable Shortcuts in System Settings – Privacy & Security – Extensions – Sharing.
shortcut.jpg

It will appear in Word like this

share.jpg
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.