Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

15 lignes
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}"