Keyboard Shortcut to Insert Current Date

This get placed in automator.

tell application "System Events"  
    set _Date to (current date)
    keystroke ¬
        "#d/" & ¬
        (year of _Date as text) & "/" & ¬
        text -2 thru -1 of ("00" & ((month of _Date) as integer)) & "/" & ¬
        (day of _Date as text)
end tell  
comments powered by Disqus