15 lines
755 B
Bash
Executable File
15 lines
755 B
Bash
Executable File
#!/bin/bash
|
|
|
|
JOUR=$(date +"%Y-%m-%d %T")
|
|
|
|
# https://github.com/alloy/terminal-notifier
|
|
#terminal-notifier -title 'Mounted' -subtitle 'Info' -message 'Le volume film est déjà monté !' -sound default
|
|
|
|
# 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"'
|
|
|
|
#osascript -e 'tell app "System Events" to display dialog "Last connextion date : '$JOUR'" buttons {"Cancel", "Continue"} cancel button "Cancel" default button "Continue"' |