set {day:d} to (current date)
set suffix to "th"
if d is 1 then set suffix to "st"
if d is 2 then set suffix to "nd"
if d is 3 then set suffix to "rd"
if d is 21 then set suffix to "st"
if d is 22 then set suffix to "nd"
if d is 23 then set suffix to "rd"
if d is 31 then set suffix to "st"
if d is 32 then set suffix to "nd"
(d) & (suffix) as string
The above is from a textexpander AppleScript snippet I saved once. Not sure what you need to do to adapt it to your needs, though. Hope it helps.
For my uses, I only wanted days in the future and the suffix on the date i.e. 12th, 1st
Only works for the DND_dateformat MMM d, yyyy i.e. Apr 21st, 2017
My coding leaves a bit to be desired but it works.
Posted in case anyone wanted this type of version.
trigger is 3 d's, then 1 or 2 digits then space ( I know that's obvious to most folks, but I wouldn't have known that unless someone told me)
Yes, that is the problem, I just can’t find where to adjust that. I was able to in one of my versions of your macros, but not this one.
I Hope Tom (OH TOM!!!) comes along to revise.
Thanx for your time.
To help myself remember how to use your macro, I added this Comment:
Anyone who wants this can download this Action from here: Comment.kmactions (1.9 KB)
Note: When you import an Action, like this one, it is inserted immediately after the currently selected Action in the current macro. So be sure to have Tom's macro in edit mode, with the first Action selected.
Much better than mine. Thanks Tom.
When you get a chance, would you mind uploading just this one Comment Action? I've already made a number of changes to the macro.
Hey JM, you could just download the updated macro, select the Comment action, hit ⌘C, select the Comment action in your modified macro, hit ⌘V and delete the old Comment action.
But — for your ultimate convenience — here is the standalone Comment action: Comment.kmactions (25.8 KB)