You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
364 B

  1. #!/bin/sh
  2. message=${1:="no message"}
  3. title=''
  4. if [ "${2}" != "" ]; then
  5. message="${2}"
  6. title="${1}"
  7. fi
  8. notification="display notification \"${message}\""
  9. #if [ "${title}" != "" ]; then
  10. # notification="${notification} with title \"${title}\""
  11. #fi
  12. [ "${title}" != "" ] && notification="${notification} with title \"${title}\""
  13. osascript -e "${notification}"