Add email to contacts
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?
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>!$', firstname.lastname@example.org')) people.email = emails # !!! contacts.save()
This post is deleted!last edited by