It’s been a while since I did any scripting and I am just perplexed by getting error -1743 for everything I try to put inside a tell block to Contacts.
tell application "Contacts"
activate
set myCard to my card
end tell
=> error -1743
offending object: my card
tell application "Contacts"
activate
get name of every person
end tell
=> error -1743
offending object: every person
And so forth. Using Script Debugger 6.0.1 .
It must be something trivial. What am I doing wrong?
Contacts is open. The “activate” switches to Contacts for a half second, then Script Debugger pops back up with the error. I get the same error no matter what message I send to the Contacts app.
AHA! I works in Script Editor. Must be a setting or a bug in Script Debugger.
It sounds like a permissions problem. Go to System Preferences, Security & Privacy → Privacy, click on Contacts, and see if Script Debugger has access to your Contacts.