julienXX / terminal-notifier

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

Question: -execute multiline command? #120

Closed sg-s closed 9 years ago

sg-s commented 9 years ago

How do I get two things done when the user clicks on the notification? for example,

.... -execute CMD1 CMD2

this is sort of linked to [this issue #105]

julienXX commented 9 years ago

You can do something like: $ terminal-notifier -message "test" -execute "say Test && say lol"

sg-s commented 9 years ago

thanks!