Not authorized to send Apple events to Contacts
I have this script in Shortcuts which runs fine when I run it from the Shortcuts page (click on Shortcuts from dock and select its name which is "WORK"
on run {input, parameters}
tell application "Contacts"
set the clipboard to (vcard of people) as text
do shell script "pbpaste >~/Desktop/Other/late.vcf"
quit "Contacts"
end tell
return input
end run
However if I try to run it as a Shortcut menu item, I get "Not authorized to send Apple events to Contacts" and the shortcut does not run
Any clues as to how to make it work from the menubar?
Thanks
Sequoia 15.5
iMac (2017 – 2020)