Переглянути джерело

Add an osx notify script.

cray
Mitch Tishmack 11 роки тому
джерело
коміт
fc4b234d46
1 змінених файлів з 14 додано та 0 видалено
  1. +14
    -0
      common/bin/notify

+ 14
- 0
common/bin/notify Переглянути файл

@@ -0,0 +1,14 @@
#!/bin/sh
message=${1:="no message"}
title=''
if [ "${2}" != "" ]; then
message="${2}"
title="${1}"
fi
notification="display notification \"${message}\""
#if [ "${title}" != "" ]; then
# notification="${notification} with title \"${title}\""
#fi
[ "${title}" != "" ] && notification="${notification} with title \"${title}\""

osascript -e "${notification}"

Завантаження…
Відмінити
Зберегти