My first question here and just getting started so please be kind.
The task I’ve set myself is to automatically extract contact information from a stack of pdf registration forms, and to create new IOS contacts with that extracted information.
I’ve used (apple) workflow to get the text elements from the PDFs, and have cobbled together the code below from snippets found here that use the contacts module provided in pythonista to create a new contact in IOS.
All good so far.... however now I’m stuck and looking for some clues on how to add the contact to a particular group in IOS contacts, namely “Customers”
The documentation doesn’t seem to cover this in a way I’m able to understand and there are no examples I can find either here or elsewhere on the web showing how to use the contact.group element to add a new member to a group.
What I’ve got so far is here:
https://gist.github.com/my4paws/ae7dc32ba9937996d4d13848ab13404c
Note: I wasn’t able to post the code directly here without being flagged as spam.
Any help much appreciated.