Show Time & Date with Growl and DragonDictate.

Displaying Date & Time with your Voice

This is another post in this series about how to use custom commands in DragonDictate for Mac. The intro post is here. Today let’s go over how to easily display the date and time using an application called Growl and a small piece of AppleScript.

From the Tools menu and DragonDictate choose the Commands option. To create a new command from this window, you can either choose the New Command option from the File menu or use the keyboard shortcut Shift Command N.

The right-hand pane of the command window shows new options; this is where you can control the context, type and action to each of your commands will take.

In this case choose the Applescript type.

  1. Command Name = Xylophone Date
  2. Command Description = This command will display the current date and time in a Growl window.
  3. Context = Global (this means it will run when any application is foremost and not just one particular application is open)
  4. Type = AppleScript
  5. The last option is a large window where we put the AppleScript we wish to be run when our command is issued. In this case the AppleScript is:
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

With all of that filled in correctly, click on the Compile button to make sure there are no errors in your AppleScript (it will tell you if there are) and finally click Save. You can then close the command window and start and stop QuickTime Player will using just your voice.

Summary

So in summary my verbal command is “Xylophone Date”

And the AppleScript you will need is here: