Created
May 14, 2017 10:43
-
-
Save robotsandcake/445808ec5bbfa3a21f195600470e3608 to your computer and use it in GitHub Desktop.
This AppleScript when combined with Growl and DragonDictate for Mac will display the current date and time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set the date_stamp to ((the current date) as string) | |
| tell application "Growl" | |
| -- Make a list of all the notification types | |
| set the allNotificationsList to ¬ | |
| {"Date and Time"} | |
| --Default enable notifications | |
| set the enabledNotificationsList to ¬ | |
| {"Date and Time"} | |
| --register with growl | |
| register as application ¬ | |
| "Growl Date and Time" all notifications allNotificationsList ¬ | |
| default notifications enabledNotificationsList ¬ | |
| icon of application "AppleScript Editor" | |
| set body_text to "Date and Time: " | |
| -- Send a Notification... | |
| notify with name ¬ | |
| "Date and Time" title ¬ | |
| body_text description ¬ | |
| date_stamp application name "Growl Date and Time" | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment