r/applescript • u/OatmealDurkheim • Aug 05 '20
Date Input → All Caps
Is there a way to modify the following script to use all caps? Thanks!
From:
Wednesday, 5 August 2020
To:
WEDNESDAY, 5 AUGUST 2020
Current Script:
on run {input, parameters}
set thedate to date string of (current date)
tell application "System Events"
keystroke thedate
end tell
end run
2
Upvotes
View all comments
Show parent comment
1
u/Sternberger Aug 05 '20
In your original script, add this line after line 2:
set thedate to do shell script "echo " & thedate & " | tr a-z A-Z"