Question: Can I write a script to output current date without either 1) having to select text or 2) having to save to clipboard?
Can I write a script to output current date without either
1) having to select text or
2) having to save to clipboard?
I don't understand why "Output Replaces Selected Text" is an option to check when scripts do not work when it is unchecked.
I don't want to first have to select text when all I want is to hotkey the current date to text.
The other option is to copy current date to clipboard 'tell' application by invoking control v. This is so 'not elegant'.
I do not want the date to replace what I have copied to the clipboard. I still need to use that.
set r to short date string of (current date)
tell application "System Events"
but I have to first type some random text, select the random text and then my shortcut keys.
Does someone have a more elegant way?
MacBook Air, iOS 11.1