Dette websted vil have begrænset funktionalitet, mens vi gennemgår vedligeholdelse for at forbedre din oplevelse. Hvis en artikel ikke løser dit problem, og du vil stille et spørgsmål, har vi vores supportfællesskab, der venter på at hjælpe dig på @FirefoxSupport på Twitter og/r/firefox på Reddit.

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

Arguments on OSX doesn't work

  • 5 svar
  • 1 har dette problem
  • 1 visning
  • Seneste svar af Matt

more options

Hi guys, I have a MBP with OSX Yosemite, I want make a service script for send multiple file on attachment with thunderbird.

I'have try this command in console but did't work: 1) open with "open -a"

open -a /Applications/Thunderbird.app/ --args -compose "to=foo@nowhere.net"

RESULT: only open app with no compose message

2) open direct ./ script cd /Applications/Thunderbird.app/Contents/MacOS/ ./thunderbird -compose "to=foo@nowhere.net" says: A copy of Thunderbird ecc.. (only one instance per time) How can I do with arguments??

Hi guys, I have a MBP with OSX Yosemite, I want make a service script for send multiple file on attachment with thunderbird. I'have try this command in console but did't work: 1) open with "open -a" open -a /Applications/Thunderbird.app/ --args -compose "to=foo@nowhere.net" RESULT: only open app with no compose message 2) open direct ./ script cd /Applications/Thunderbird.app/Contents/MacOS/ ./thunderbird -compose "to=foo@nowhere.net" says: A copy of Thunderbird ecc.. (only one instance per time) How can I do with arguments??

Ændret af r1si den

Valgt løsning

I really don't know, but try it when it is not running.

Læs dette svar i sammenhæng 👍 0

Alle svar (5)

more options

have you got Thunderbird closed when you try and launch it again?

more options

Matt said

have you got Thunderbird closed when you try and launch it again?

Yes my Thunderbird is already running, but with args -compose I expected that it works with Thunderbird is running.

Ændret af r1si den

more options

Valgt løsning

I really don't know, but try it when it is not running.

more options

Where can I open a bug? bugzilla?

more options

yes bugzilla is the place.

But what is the args I see no references on google for it for OSX except for python.

My understanding of OSX is you would launch a program from the shell as

exec "/Applications/MyApp.app/Contents/MacOS/MyAppExecutableFile" [arguments]

My very limited understanding of OSX indicates the open command is to specify a program to open a document. with the -a parameter.

I assume your using this command line reference https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options