julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.39k stars 330 forks source link

10.9 - Sender not working #68

Closed doovers closed 10 years ago

doovers commented 11 years ago

The following terminal command will display message but without -sender functionality

/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier" -title foo -message bar -sender com.microsoft.outlook

julienXX commented 11 years ago

Works well on my machine with any app. I don't have Outlook to check. Do you run the latest terminal-notifier version (1.5.1)? Do you have a com.microsoft.Outlook.plist file in ~/Library/Preferences?

doovers commented 11 years ago

Yes to both questions.

julienXX commented 11 years ago

Running /Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier -title foo -message bar -sender com.apple.Safariworks for you?

doovers commented 11 years ago

No it creates message but without sender functionality the same as with Outlook example

julienXX commented 11 years ago

@doovers not sure I understand what you mean by sender functionality, sender does nothing but "simulating" the app that created the notification. Perhaps you're looking for the -activate option?

doovers commented 11 years ago

Sorry, what I meant by that was simulating the app as you said i.e. the icon and app name do not change and clicking the notification has no effect. -activate does work as expected but -sender does not.

alvaro-octal commented 11 years ago

works fine for me (at 10.9 with 1.5.1)

captura de pantalla 2013-11-20 17 33 43

terminal-notifier -group 'servidores' -title 'Go go go, TS3 server is running' -subtitle '42' -message 'El servidor ocupa el puerto 9987' -activate 'com.teamspeak.TeamSpeak3' -sender 'com.teamspeak.TeamSpeak3'

IAmMalte commented 11 years ago

I've got the same problem:

./terminal-notifier -title foo -message bar -sender com.apple.Safari

only gives me this: http://cl.ly/image/401z0u2p2f3m

(OS X 10.9)

alvaro-octal commented 11 years ago

did you installed via gem?

IAmMalte commented 11 years ago

Nope, via https://npmjs.org/package/terminal-notifier

alvaro-octal commented 11 years ago

try to

sudo gem install terminal-notifier

and them call the binary without the ./ (example: terminal-notifier -title foo -message bar -sender com.apple.Safari), should work

IAmMalte commented 11 years ago

So that works. Apparently then NPM package uses and older version. By replacing the one in the package I was able to make it work. Thanks

julienXX commented 10 years ago

Closing for now. Feel free to re-opne if the issue persist with the 1.6.0 release.