JQuery only runs in a browser document. TextExpander does not run in the browser so there would be nowhere to display the picker.
You could perhaps set Textexpander to open a picker like that in your local browser and then edit the Javascript code to save the result to the clipboard.
So you have 5 seconds to choose the date, which is not handy.
I tried to find a solution for this, but couldn’t find it. Then I tried to rewrite the snippet to AppleScript, but there I run into a permission error I couldn’t solve.
I’m running a old version of TextExpander (I moved most snippets to Keyboard Maestro), so maybe it works in a newer version.
I hope someone with more experience with shell scripts in TextExpander knows a solution,
Thanks for that; I think maybe I’m asking too much, but sometimes I just need a visual of a calendar in front of me in order to figure out a date for something, and it’s easier if it’s in the snippet. I thought there was a time when TE supported it in the app, but there’s nothing here to indicate that specific option exists.
It’s a pity. But you can still use the Siri Shortcuts app. After picking the date you can copy the date to the clipboard instead and then paste it into the document.