System-wide Insert Date in number only format (YYYY/MM/DD) or similar
I found this by: Luis Sequeira1 User level: Level 8 (43,284 points)
script to run in automator a system service:
on run {input, parameters}
set thedate to (current date) as string
tell application "System Events"
keystroke thedate
end tell
end run
It works well to get the long date and time, you get a result like: lunes, 31 de mayo de 2021, 19:47:37 (Spanish in my case)
but I am looking to get a date stamp like the one you get in Filemaker when you press COMMAND + "-" In my case with my system date format I get 2021/05/31, may variate depending on system setup.
Any ideas on how create an apple script or Automator system service to get the short date format to paste in any document? Also I would add a ": " to the end of the date so the final pasted date is: "2021/05/31: "
MacBook Pro 13″, macOS 11.4