2
1

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.

Macのターミナルで若干時間かかるスクリプトを実行した時に終了時の通知がほしい

Last updated at Posted at 2019-01-17

いろいろやり方はありそうだけど今回はAppleScriptで。
シェルはfishです。
スクリプトはDropbox内に置いて同期。

alert.scpt
tell application "System Events" to display dialog "Finish terminal task" buttons { "ok" }
~/.config/fish/config.fish
alias alert 'osascript ~/Dropbox/Apps/alert.scpt'

なんか実行するとき

ruby main.rb ; alert

Screen Shot 2019-01-17 at 11.33.26.png

使わなかったけど便利そうなツール
GitHub - julienXX/terminal-notifier: Send User Notifications on macOS from the command-line.
GitHub - vjeantet/alerter: Send User Alert Notification on Mac OS X 10.8 from the command-line.

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?