21 lines
1023 B
Bash
Executable File
21 lines
1023 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# notifications
|
|
|
|
JOUR=$(date +"%Y-%m-%d %T")
|
|
#ICON="/System/Library/CoreServices/Dock.app/Contents/Resources/finder.png"
|
|
|
|
# https://github.com/alloy/terminal-notifier
|
|
#terminal-notifier -title 'Mounted' -subtitle 'Info' -message 'Le volume film est déjà monté !' -sound default
|
|
#terminal-notifier -title 'Mounted' -subtitle 'Info' -message 'Le volume film est déjà monté !' -appIcon $ICON -contentImage $ICON
|
|
|
|
# http://apple.stackexchange.com/questions/57412/how-can-i-trigger-a-notification-center-notification-from-an-applescript-or-shel
|
|
#osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title" subtitle "subtitle" sound name "Glass"'
|
|
|
|
#osascript -e 'display notification "'"$JOUR"'"' #ok
|
|
|
|
osascript -e 'display notification "'"$JOUR"' bla" with title "Title" subtitle "subtitle" sound name "Glass"'
|
|
|
|
#osascript -e 'tell app "System Events" to display dialog "Last connextion date : '$JOUR'" buttons {"Cancel", "Continue"} cancel button "Cancel" default button "Continue"'
|
|
|