Applescript repeatedly asks to allow access to Contacts

I have the following script that executes fine EXCEPT for the fact that it always asks to " "vcvol" would like to access your contacts"

In privacy and security all of the following are checked:


contacts

files and folders

full disk access

accessibility

automation


How to get this to run and not ask to allow contacts every time?


Thanks


set volume output volume 50

tell application "Contacts"
set the clipboard to (vcard of people) as text
do shell script "pbpaste >~/Desktop/OTHER/late.vcf"
quit "Contacts"

end tell

tell application "Mail" to activate
tell application "Mail"
try
close every window
end try
end tell




MacBook Air (M2, 2022)

Posted on Sep 2, 2025 10:08 PM

Reply
2 replies

Applescript repeatedly asks to allow access to Contacts

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.