AppleScripts to create Calendar Events not working in Catalina
OK, I've made some changes so that I can run the Script in Script Editor (by giving the variables plain text strings rather than extracting them from the email).
When I run the script I get the following error:
error &quot;Calendar got an error: Can’t get calendar &quot;Invoices&quot;.&quot; number -1728 from calendar &quot;Invoices&quot;
That gives me a clue I guess - although the Calendar that it should be adding the event to does exist in my Calendar app. Could it be something to do with the quotes around &quot;Calendar&quot; and &quot;Invoices&quot; in the following line of the script?
tell application &quot;Calendar&quot; to tell calendar &quot;Invoices&quot;