*** SOLVED ***
I uninstalled / reinstalled Pythonista.
This time I got the prompt to authorize access to Contacts.
Sometimes I wonder about myself :-/
Thanks for the help.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
*** SOLVED ***
I uninstalled / reinstalled Pythonista.
This time I got the prompt to authorize access to Contacts.
Sometimes I wonder about myself :-/
Thanks for the help.
I dbl-checked that. Pythonista has access to Contacts & iCloud.
Is there a way to get the error code, other than just a False return from the Contacts.save() ?
Thanks for the response.
I’m baffled.
I waited a while. I waited overnight. I went to iCloud on my laptop and checked there.
Also, I’m unable to do a simple edit on an existing Person.
There’s something fundamentally wrong on my end.
All of the examples I can find online make it look easy, but I can’t get it to work. ‘save()’ always returns false.
What am I doing wrong?
import contacts
print(("Authorized:", contacts.is_authorized()))
p = contacts.Person()
p.first_name = "Johnny"
p.last_name = "Ray"
print(("add_person:", contacts.add_person(p)))
print(("save:", contacts.save()))```