Add email to contacts
dejan56 last edited by
I am new to both Python and Pythonista. I am trying to create code to deduplicate contacts on iPhone.
However, I am not able to add email to Contacts.
people = contacts.get_all_people()
Why is this email not showing up in iPad Contacts?
omz last edited by
you have to re-assign the
Personobject. Modifying the list in-place has no effect, because the
Personobject cannot detect changes in that list (it's just a snapshot copy).
Try something like this:
import contacts people = contacts.get_all_people() print people.full_name emails = people.email emails.append((u'$!<Other>!$', email@example.com')) people.email = emails # !!! contacts.save()
nisitha53 last edited by
This post is deleted!