Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On 10.8.5: -sender doesn't seem to work with -execute #58

Closed
ericbf opened this issue Oct 17, 2013 · 5 comments
Closed

On 10.8.5: -sender doesn't seem to work with -execute #58

ericbf opened this issue Oct 17, 2013 · 5 comments
Labels

Comments

@ericbf
Copy link

ericbf commented Oct 17, 2013

Doing -sender by itself works, and doing -execute by itself works, but when doing both, -execute doesn't seem to be done.

terminal-notifier -message "test" -sender "com.apple.iTunes"
terminal-notifier -message "test" -execute "say Test"
terminal-notifier -message "test" -sender "com.apple.iTunes" -execute "say Test"
@Nx-cold
Copy link

Nx-cold commented Oct 17, 2013

but when doing both, -execute doesn't seem to be done.

I'll check it in my spare time and let you now.

@Nx-cold
Copy link

Nx-cold commented Oct 17, 2013

Confirm that issue, execute command doesn't work, even no logs in Console.app.
terminal-notifier.app/Contents/MacOS/terminal-notifier -message 'Some Text' -title 'a little title' -sender com.apple.iTunes -sound default -execute 'open http://ya.ru'
if use -activate instead of -sender then the command is executed flawlessly.

@julienXX
Copy link
Owner

Looking into this.

@lauhub
Copy link

lauhub commented Nov 3, 2013

Same problem with Mavericks 10.9

@alloy
Copy link
Collaborator

alloy commented Nov 4, 2013

This is expected and should be better reflected in the docs. When you use -sender it fakes as if the notification was sent by a specific application, when clicking the notification this other application will be launched instead. As such, the terminal-notifier application does not get activated and not get a chance to run -execute commands.

@alloy alloy closed this as completed in 2d3e817 Nov 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants