It was suggested on one of the sites I visited to add “my” in front of “date” (for the life of me I can’t remember why) to overcome my Calendar date problem (see below).
My script now works but I don’t know why.
– Works
tell application “Calendar”
set theDateStr to “10/01/26”
set theDate to my date (theDateStr)
return result
end tell
– Fails
– error “Calendar got an error: Can’t get date "10/01/26".” number -1728 from date “Thursday, October 1, 2026 at 12:00:00 AM”
tell application “Calendar”
set theDateStr to “10/01/26”
set theDate to date (theDateStr)
return result
end tell