I am on El Capitan OS X.
I want to be able to hit some keyboard shortcut and then have today's date be automatically outputted.
Example:
When I press Option + D, "2016_06_13" is pasted into the text field.
The date would be automatically calculated based on my time zone.
Ideally, I'd like to be able to do this universally. So in Finder, Safari, TextEdit, etc. — not just exclusive to one program.
Having this shortcut would streamline my workflow.
Is this possible?
Best Answer
You could do it with Automator like this:
Services
Run Applescript
Note that the
day
will not have a leading zero like themonth
does. If you want that, you could replace the line with:(day of _Date as text)
with:text -2 thru -1 of ("00" & ((day of _Date) as integer))
Save
command ( Cmd + S ) instead ofSave as...
the Service file is automatically put in the right place.The Last step would be to define a shortcut for the service you just made.
Go to mac
System preferences > Keyboard > Shortcuts > Services
and then find the service you saved before. You should find it at the bottom area of the list. Double click thenone
text on the right side of the service name and give it a shortcut.