Skip to content

Instantly share code, notes, and snippets.

@robotsandcake
Created May 14, 2017 10:43
Show Gist options
  • Select an option

  • Save robotsandcake/445808ec5bbfa3a21f195600470e3608 to your computer and use it in GitHub Desktop.

Select an option

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
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