First commit
This commit is contained in:
15
bash_notifications.command
Executable file
15
bash_notifications.command
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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"'
|
||||
Reference in New Issue
Block a user