Help with MM/DD/YYYY HH-MM-SS Shortcut
I am trying to find a way to type something like "thedate" and have it fill in as the exact time I am typing it. I have pieced together this:
set theDate to ((current date) as string)'s quoted form
# strftime man page: https://www.freebsd.org/cgi/man.cgi?query=strftime&sektion=3
set iso8601fmt to (do shell script "date -j +\"%F %X\"") as text
tell application "System Events" to theDate
But to be frank, I have no idea exactly what I have done other than having it display the correct thing when I press the run button. Can someone help me turn this into a keyboard shortcut that runs when I type "thedate"? Whether that be adjusting the code, changing settings in settings, or both :) Thank you in advance
MacBook Pro 13″, macOS 13.6