122
123

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mavericksでターミナルからパイプで通知だけするワンライナー

Posted at
$ alias pong='perl -nle '\''print "display notification \"$_\" with title \"Terminal\""'\'' | osascript'
$ echo hoge | pong

スクリーンショット 2013-10-24 11.14.14.png

日本語もおk!

$ echo Javaだいすき | pong

スクリーンショット 2013-10-24 11.15.57.png

参考

Mavericksでは通知センターをスクリプトから使えるようになった

122
123
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
122
123

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?