為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

launching thunderbird from command line on mac os with compose arguments

  • 6 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 jaumedt

more options

I'm launching Thunderbird from command line on mac os with compose arguments like this:

open -a /Applications/Thunderbird.app/Contents/MacOS/thunderbird --args --compose

it runs thunderbird and show the compose window. great!

The issue is when thunderbird is running before launching the shell command, it only shows the thunderbird inbox window, not the thunderbird compose window.

Any Idea ?

Thank you for your help

I'm launching Thunderbird from command line on mac os with compose arguments like this: open -a /Applications/Thunderbird.app/Contents/MacOS/thunderbird --args --compose it runs thunderbird and show the compose window. great! The issue is when thunderbird is running before launching the shell command, it only shows the thunderbird inbox window, not the thunderbird compose window. Any Idea ? Thank you for your help

所有回覆 (6)

more options

Never understood the use of the command line option in this case.

Use the mailto: protocol to launch your default mailer on all operating systems. With the use of appropriate mailto parameters you can basically compose the entire message with it, just not actually click send.

more options

Thank you Matt

Unfortunatelly mailto: doesn't support file attachments

more options

See the link for an example of a mailto: with the attachment parameter set.

I appear to recall Windows had somewhat flaky support for mailto: Is the Apple implementation worse?

more options

sure!

I'have been gathering on the net about composing emails with emailto and I have found a lot of them but none of them works

Thank you

more options

jaumedt said

sure! I'have been gathering on the net about composing emails with emailto and I have found a lot of them but none of them works Thank you

have you tried an attachment of a few btyes of text in a text file? Most issue I have seen with mailto are either related to limitations of the software doing the implementation or the operating system. For example web browsers typically do not have access to the local file system, so an attachment using the local file system would fail, whereas an attachment on a public web server would not. Mail to like any programing task is not just a matter if rolling it up and it will work. Just as Windows MAPI is questionable on any product not released by Microsoft.

You might want to try -new-instance at the commend line. I do not know if it will do what you want.

more options

Hi Matt

Thunderbird doesn't support more than one instance on mac os.

Eventually I decided to code an email socket. May be I could use thunderbird in new releases.

Thank you for your help