Contacts Module Reference
New in version 0.0.2.
Control the macOS Contacts application using JXA-like syntax.
Classes:
|
An address associated with a contact in Contacts.app. |
|
A wrapper around lists of addresses that employs fast enumeration techniques. |
|
A class for managing and interacting with Contacts.app. |
|
Contact information associated with a contact in Contacts.app. |
|
A wrapper around lists of contact information entries that employs fast enumeration techniques. |
|
A custom date associated with a contact in Contacts.app. |
|
A wrapper around lists of contact custom dates that employs fast enumeration techniques. |
|
A document in Contacts.app. |
|
A wrapper around lists of documents that employs fast enumeration techniques. |
|
A document in Contacts.app. |
|
A wrapper around lists of contact email addresses that employs fast enumeration techniques. |
|
An entry in Contacts.app. |
|
A wrapper around lists of contact entries that employs fast enumeration techniques. |
|
A group in Contacts.app. |
|
A wrapper around lists of contact groups that employs fast enumeration techniques. |
|
An instant message (IM) address associated with a contact in Contacts.app. |
|
A wrapper around lists of IM addresses that employs fast enumeration techniques. |
|
A person in Contacts.app. |
|
A wrapper around lists of people that employs fast enumeration techniques. |
|
A phone number associated with a contact in Contacts.app. |
|
A wrapper around lists of contact phone numbers that employs fast enumeration techniques. |
|
A related name of a contact in Contacts.app. |
|
A wrapper around lists of contact related names that employs fast enumeration techniques. |
|
A social profile associated with a contact in Contacts.app. |
|
A wrapper around lists of contact social profiles that employs fast enumeration techniques. |
|
A URL associated with a contact in Contacts.app. |
|
A wrapper around lists of contact URLs that employs fast enumeration techniques. |
|
A window of Contacts.app. |
- class PyXA.apps.Contacts.XAContactsAddress(properties)[source]
Bases:
XAObject
An address associated with a contact in Contacts.app.
New in version 0.0.7.
Attributes:
The city part of the address.
The country part of the address.
The country code part of the address.
The formatted string for the address.
The unique identifier for the address.
The label associated with the address.
The state, province, or region part of the address.
The street part of the address.
The zip code or postal code part of the address.
- property city: str
The city part of the address.
- property country: str
The country part of the address.
- property country_code: str
The country code part of the address.
- property formatted_address: str
The formatted string for the address.
- property id: str
The unique identifier for the address.
- property label: str
The label associated with the address.
- property state: str
The state, province, or region part of the address.
- property street: str
The street part of the address.
- property zip: str
The zip code or postal code part of the address.
- class PyXA.apps.Contacts.XAContactsAddressList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of addresses that employs fast enumeration techniques.
All properties of addresses can be called as methods on the wrapped list, returning a list containing each address’ value for the property.
New in version 0.0.7.
Methods:
by_city
(city)by_country
(country)by_country_code
(country_code)by_formatted_address
(formatted_address)by_id
(id)by_label
(label)by_state
(state)by_street
(street)by_zip
(zip)city
()country
()id
()label
()state
()street
()zip
()- by_city(city: str) XAContactsAddress | None [source]
- by_country(country: str) XAContactsAddress | None [source]
- by_country_code(country_code: str) XAContactsAddress | None [source]
- by_formatted_address(formatted_address: str) XAContactsAddress | None [source]
- by_id(id: str) XAContactsAddress | None [source]
- by_label(label: str) XAContactsAddress | None [source]
- by_state(state: str) XAContactsAddress | None [source]
- by_street(street: str) XAContactsAddress | None [source]
- by_zip(zip: str) XAContactsAddress | None [source]
- class PyXA.apps.Contacts.XAContactsApplication(properties)[source]
Bases:
XASBApplication
,XACanOpenPath
A class for managing and interacting with Contacts.app.
See also
New in version 0.0.2.
Classes:
Format
(value)Format options when saving documents.
ObjectType
(value)Object types that can be created using
XAContactsApplication.make()
.ServiceType
(value)Service types for social media accounts.
Attributes:
The default country code for addresses.
Whether Contacts is the frontmost application.
The user's contact card.
The name of the application.
The currently selected entries.
Whether there are any unsaved changed.
The version of Contacts.app.
Methods:
documents
([filter])Returns a list of documents, as PyXA objects, matching the given filter.
groups
([filter])Returns a list of groups, as PyXA objects, matching the given filter.
make
(specifier[, properties, data])Creates a new element of the given specifier class without adding it to any list.
open
(file_path)Opens a document and prompts whether to import the contact(s) contained in the document.
people
([filter])Returns a list of people, as PyXA objects, matching the given filter.
save
()Saves all changes to the address book.
- class Format(value)[source]
Bases:
Enum
Format options when saving documents.
Attributes:
The native Address Book file format
- ARCHIVE = 1633837685
The native Address Book file format
- class ObjectType(value)[source]
Bases:
Enum
Object types that can be created using
XAContactsApplication.make()
.Attributes:
- DOCUMENT = 'document'
- GROUP = 'group'
- PERSON = 'person'
- URL = 'url'
- class ServiceType(value)[source]
Bases:
Enum
Service types for social media accounts.
Attributes:
- AIM = 1635399733
- FACEBOOK = 1635399988
- GADU_GADU = 1635399734
- GOOGLE_TALK = 1635399735
- ICQ = 1635399736
- JABBER = 1635399737
- MSN = 1635399984
- QQ = 1635399985
- SKYPE = 1635399986
- YAHOO = 1635399987
- property default_country_code: str
The default country code for addresses.
- documents(filter: dict | None = None) XAContactsDocumentList [source]
Returns a list of documents, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned documents will have, or None
- Returns:
The list of documents
- Return type:
New in version 0.0.7.
- property frontmost: bool
Whether Contacts is the frontmost application.
- groups(filter: dict | None = None) XAContactsGroupList [source]
Returns a list of groups, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned groups will have, or None
- Returns:
The list of groups
- Return type:
- Example:
>>> import PyXA >>> app = PyXA.Application("Contacts") >>> print(app.groups()) <<class 'PyXA.apps.Contacts.XAContactsGroupList'>['Example Group 1', 'Example Group 2', ...]>
New in version 0.0.7.
- make(specifier: str | ObjectType, properties: dict | None = None, data: Any | None = None)[source]
Creates a new element of the given specifier class without adding it to any list.
Use
XABase.XAList.push()
to push the element onto a list.- Parameters:
specifier (Union[str, XAContactsApplication.ObjectType]) – The classname of the object to create
properties (dict) – The properties to give the object
data (Any, optional) – The data to initialize the object with. Defaults to None
- Returns:
A PyXA wrapped form of the object
- Return type:
- Example 1:
Add a URL to a contact
>>> import PyXA >>> app = PyXA.Application("Contacts") >>> contact = app.people().by_name("Example Contact") >>> new_url = app.make("url", {"label": "Google", "value": "www.google.com"}) >>> contact.urls().push(new_url) >>> app.save()
New in version 0.0.7.
- property my_card: XAContactsPerson
The user’s contact card.
- property name: str
The name of the application.
- open(file_path: str)[source]
Opens a document and prompts whether to import the contact(s) contained in the document.
- Parameters:
file_path (str) – The path to the file to import
New in version 0.0.7.
- people(filter: dict | None = None) XAContactsPersonList [source]
Returns a list of people, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned people will have, or None
- Returns:
The list of people
- Return type:
- Example:
>>> import PyXA >>> app = PyXA.Application("Contacts") >>> print(app.people()) <<class 'PyXA.apps.Contacts.XAContactsPersonList'>['Example Contact 1', 'Example Contact 2', ...]>
New in version 0.0.7.
- property selection: XAContactsPersonList
The currently selected entries.
- property unsaved: bool
Whether there are any unsaved changed.
- property version: str
The version of Contacts.app.
- class PyXA.apps.Contacts.XAContactsContactInfo(properties)[source]
Bases:
XAObject
Contact information associated with a contact in Contacts.app.
New in version 0.0.7.
Attributes:
The persistent unique identifier for the information entry.
The label associated with the information entry.
The value of the information entry.
- property id: str
The persistent unique identifier for the information entry.
- property label: str
The label associated with the information entry.
- property value: str | datetime | None
The value of the information entry.
- class PyXA.apps.Contacts.XAContactsContactInfoList(properties: dict, filter: dict | None = None, obj_class=None)[source]
Bases:
XAList
A wrapper around lists of contact information entries that employs fast enumeration techniques.
All properties of contact information entries can be called as methods on the wrapped list, returning a list containing each entry’s value for the property.
New in version 0.0.7.
Methods:
by_id
(id)by_label
(label)by_value
(value)id
()label
()value
()- by_id(id: str) XAContactsContactInfo | None [source]
- by_label(label: str) XAContactsContactInfo | None [source]
- by_value(value: Any) XAContactsContactInfo | None [source]
- class PyXA.apps.Contacts.XAContactsCustomDate(properties)[source]
Bases:
XAContactsContactInfo
A custom date associated with a contact in Contacts.app.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsCustomDateList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsContactInfoList
A wrapper around lists of contact custom dates that employs fast enumeration techniques.
All properties of contact custom dates can be called as methods on the wrapped list, returning a list containing each custom date’s value for the property.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsDocument(properties)[source]
Bases:
XAObject
A document in Contacts.app.
New in version 0.0.7.
Attributes:
The location of the document of the disk, if one exists.
Whether the document has been modified since it was last saved.
The name of the document.
- property modified: bool
Whether the document has been modified since it was last saved.
- property name: str
The name of the document.
- class PyXA.apps.Contacts.XAContactsDocumentList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of documents that employs fast enumeration techniques.
All properties of documents can be called as methods on the wrapped list, returning a list containing each document’s value for the property.
New in version 0.0.7.
Methods:
by_file
(file)by_modified
(modified)by_name
(name)file
()modified
()name
()- by_file(file: XAURL) XAContactsDocument | None [source]
- by_modified(modified: bool) XAContactsDocument | None [source]
- by_name(name: str) XAContactsDocument | None [source]
- class PyXA.apps.Contacts.XAContactsEmail(properties)[source]
Bases:
XAContactsContactInfo
A document in Contacts.app.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsEmailList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsContactInfoList
A wrapper around lists of contact email addresses that employs fast enumeration techniques.
All properties of contact email addresses can be called as methods on the wrapped list, returning a list containing each email address’s value for the property.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsEntry(properties)[source]
Bases:
XAObject
An entry in Contacts.app.
New in version 0.0.7.
Methods:
add_to
(parent)Adds a child object to an entry.
delete
()Deletes the entry.
remove_from
(elem)Removes a child object from an entry.
Attributes:
The creation date of the contact entry.
The unique persistent identifier for the entry.
The last modification date of the contact entry.
Whether the entry is selected.
- add_to(parent: XAObject) XAContactsPerson [source]
Adds a child object to an entry.
- Parameters:
parent (XABase.XAObject) – The entry to add this entry as a child to
- Example 1:
Add a contact to a group
>>> import PyXA >>> app = PyXA.Application("Contacts") >>> group = app.groups().by_name("Example Group") >>> app.people()[0].add_to(group) >>> app.save()
New in version 0.0.7.
- property creation_date: datetime
The creation date of the contact entry.
- delete()[source]
Deletes the entry. Only entries creates in the current session can be deleted.
New in version 0.0.7.
- property id: str
The unique persistent identifier for the entry.
- property modification_date: datetime
The last modification date of the contact entry.
- remove_from(elem) XAContactsPerson [source]
Removes a child object from an entry.
- Parameters:
parent (XABase.XAObject) – The entry to removes this entry as a child from
- Example 1:
Remove a contact from a group
>>> import PyXA >>> app = PyXA.Application("Contacts") >>> group = app.groups().by_name("Example Group") >>> app.people()[0].add_to(group) >>> app.people()[0].remove_from(group) >>> app.save()
New in version 0.0.7.
- property selected: bool
Whether the entry is selected.
- class PyXA.apps.Contacts.XAContactsEntryList(properties: dict, filter: dict | None = None, obj_class=None)[source]
Bases:
XAList
A wrapper around lists of contact entries that employs fast enumeration techniques.
All properties of contact entries can be called as methods on the wrapped list, returning a list containing each entry’s value for the property.
New in version 0.0.7.
Methods:
by_creation_date
(creation_date)by_id
(id)by_modification_date
(modification_date)by_selected
(selected)id
()selected
()- by_creation_date(creation_date: datetime) XAContactsEntry | None [source]
- by_id(id: str) XAContactsEntry | None [source]
- by_modification_date(modification_date: datetime) XAContactsEntry | None [source]
- by_selected(selected: bool) XAContactsEntry | None [source]
- class PyXA.apps.Contacts.XAContactsGroup(properties)[source]
Bases:
XAContactsEntry
A group in Contacts.app.
New in version 0.0.7.
Methods:
groups
([filter])Returns a list of groups, as PyXA objects, matching the given filter.
people
([filter])Returns a list of people, as PyXA objects, matching the given filter.
Attributes:
The name of the group.
- groups(filter: dict | None = None) XAContactsGroupList [source]
Returns a list of groups, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned groups will have, or None
- Returns:
The list of groups
- Return type:
New in version 0.0.7.
- property name: str
The name of the group.
- people(filter: dict | None = None) XAContactsPersonList [source]
Returns a list of people, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned people will have, or None
- Returns:
The list of people
- Return type:
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsGroupList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsEntryList
A wrapper around lists of contact groups that employs fast enumeration techniques.
All properties of contact groups can be called as methods on the wrapped list, returning a list containing each group’s value for the property.
New in version 0.0.7.
Methods:
by_name
(name)name
()- by_name(name: str) XAContactsGroup | None [source]
- class PyXA.apps.Contacts.XAContactsInstantMessage(properties)[source]
Bases:
XAContactsContactInfo
An instant message (IM) address associated with a contact in Contacts.app.
New in version 0.0.7.
Attributes:
The service name of the IM address.
The service type of the IM address.
The user name of the the IM address.
- property service_name: str
The service name of the IM address.
- property service_type: ServiceType
The service type of the IM address.
- property user_name: str
The user name of the the IM address.
- class PyXA.apps.Contacts.XAContactsInstantMessageList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsContactInfoList
A wrapper around lists of IM addresses that employs fast enumeration techniques.
All properties of IM addresses can be called as methods on the wrapped list, returning a list containing each IM address’s value for the property.
New in version 0.0.7.
Methods:
by_service_name
(service_name)by_service_type
(service_type)by_user_name
(user_name)- by_service_name(service_name: str) XAContactsInstantMessage | None [source]
- by_service_type(service_type: ServiceType) XAContactsInstantMessage | None [source]
- by_user_name(user_name: str) XAContactsInstantMessage | None [source]
- service_type() list[ServiceType] [source]
- class PyXA.apps.Contacts.XAContactsPerson(properties)[source]
Bases:
XAContactsEntry
A person in Contacts.app.
New in version 0.0.7.
Methods:
addresses
([filter])Returns a list of addresses, as PyXA objects, matching the given filter.
custom_dates
([filter])Returns a list of groups, as PyXA objects, matching the given filter.
emails
([filter])Returns a list of email addresses, as PyXA objects, matching the given filter.
groups
([filter])Returns a list of groups, as PyXA objects, matching the given filter.
instant_messages
([filter])Returns a list of IM addresses, as PyXA objects, matching the given filter.
phones
([filter])Returns a list of phone numbers, as PyXA objects, matching the given filter.
related_names
([filter])Returns a list of related names, as PyXA objects, matching the given filter.
show
()Shows the contact card for this contact in Contacts.app.
social_profiles
([filter])Returns a list of social profiles, as PyXA objects, matching the given filter.
urls
([filter])Returns a list of URLs, as PyXA objects, matching the given filter.
Attributes:
The birthdate of the person.
Whether the record is for a company or not (if not, the record is for a person).
The department that the person works for.
The first name of the person.
The homepage of the person.
The image for the person.
The job title of the person.
The last name of the person.
The maiden name of the person.
The middle name of the person.
The first and last name of the person.
The nickname of the person.
The notes for the person.
The organization that employs the person.
The phonetic version of the person's first name.
The phonetic version of the person's last name.
The phonetic version of the person's middle name.
The suffix of the person's name.
The title of the person.
The person's information in vCard format.
- addresses(filter: dict | None = None) XAContactsAddressList [source]
Returns a list of addresses, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned addresses will have, or None
- Returns:
The list of addresses
- Return type:
New in version 0.0.7.
- property birth_date: datetime
The birthdate of the person.
- property company: bool
Whether the record is for a company or not (if not, the record is for a person).
- custom_dates(filter: dict | None = None) XAContactsCustomDateList [source]
Returns a list of groups, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned groups will have, or None
- Returns:
The list of groups
- Return type:
New in version 0.0.7.
- property department: str
The department that the person works for.
- emails(filter: dict | None = None) XAContactsEmailList [source]
Returns a list of email addresses, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned email addresses will have, or None
- Returns:
The list of email addresses
- Return type:
New in version 0.0.7.
- property first_name: str
The first name of the person.
- groups(filter: dict | None = None) XAContactsGroupList [source]
Returns a list of groups, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned groups will have, or None
- Returns:
The list of groups
- Return type:
New in version 0.0.7.
- property home_page: str
The homepage of the person.
- instant_messages(filter: dict | None = None) XAContactsInstantMessageList [source]
Returns a list of IM addresses, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned IM addresses will have, or None
- Returns:
The list of IM addresses
- Return type:
New in version 0.0.7.
- property job_title: str
The job title of the person.
- property last_name: str
The last name of the person.
- property maiden_name: str
The maiden name of the person.
- property middle_name: str
The middle name of the person.
- property name: str
The first and last name of the person.
- property nickname: str
The nickname of the person.
- property note: str
The notes for the person.
- property organization: str
The organization that employs the person.
- phones(filter: dict | None = None) XAContactsPhoneList [source]
Returns a list of phone numbers, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned phone numbers will have, or None
- Returns:
The list of phone numbers
- Return type:
New in version 0.0.7.
- property phonetic_first_name: str
The phonetic version of the person’s first name.
- property phonetic_last_name: str
The phonetic version of the person’s last name.
- property phonetic_middle_name: str
The phonetic version of the person’s middle name.
Returns a list of related names, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned related names will have, or None
- Returns:
The list of related names
- Return type:
New in version 0.0.7.
- show() XAContactsPerson [source]
Shows the contact card for this contact in Contacts.app.
- Returns:
The contact person object
- Return type:
New in version 0.0.7.
- social_profiles(filter: dict | None = None) XAContactsSocialProfileList [source]
Returns a list of social profiles, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned social profiles will have, or None
- Returns:
The list of social profiles
- Return type:
New in version 0.0.7.
- property suffix: str
The suffix of the person’s name.
- property title: str
The title of the person.
- urls(filter: dict | None = None) XAContactsURLList [source]
Returns a list of URLs, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned URLs will have, or None
- Returns:
The list of URLs
- Return type:
New in version 0.0.7.
- property vcard: str
The person’s information in vCard format.
- class PyXA.apps.Contacts.XAContactsPersonList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsEntryList
A wrapper around lists of people that employs fast enumeration techniques.
All properties of people can be called as methods on the wrapped list, returning a list containing each IM person’s value for the property.
New in version 0.0.7.
Methods:
by_birth_date
(birth_date)by_company
(company)by_department
(department)by_first_name
(first_name)by_home_page
(home_page)by_image
(image)by_job_title
(job_title)by_last_name
(last_name)by_maiden_name
(maiden_name)by_middle_name
(middle_name)by_name
(name)by_nickname
(nickname)by_note
(note)by_organization
(organization)by_phonetic_first_name
(phonetic_first_name)by_phonetic_last_name
(phonetic_last_name)by_phonetic_middle_name
(phonetic_middle_name)by_suffix
(suffix)by_title
(title)by_vcard
(vcard)company
()image
()name
()nickname
()note
()suffix
()title
()vcard
()- by_birth_date(birth_date: datetime) XAContactsPerson | None [source]
- by_company(company: bool) XAContactsPerson | None [source]
- by_department(department: str) XAContactsPerson | None [source]
- by_first_name(first_name: str) XAContactsPerson | None [source]
- by_home_page(home_page: str) XAContactsPerson | None [source]
- by_image(image: XAImage) XAContactsPerson | None [source]
- by_job_title(job_title: str) XAContactsPerson | None [source]
- by_last_name(last_name: str) XAContactsPerson | None [source]
- by_maiden_name(maiden_name: str) XAContactsPerson | None [source]
- by_middle_name(middle_name: str) XAContactsPerson | None [source]
- by_name(name: str) XAContactsPerson | None [source]
- by_nickname(nickname: str) XAContactsPerson | None [source]
- by_note(note: str) XAContactsPerson | None [source]
- by_organization(organization: str) XAContactsPerson | None [source]
- by_phonetic_first_name(phonetic_first_name: str) XAContactsPerson | None [source]
- by_phonetic_last_name(phonetic_last_name: str) XAContactsPerson | None [source]
- by_phonetic_middle_name(phonetic_middle_name: str) XAContactsPerson | None [source]
- by_suffix(suffix: str) XAContactsPerson | None [source]
- by_title(title: str) XAContactsPerson | None [source]
- by_vcard(vcard: str) XAContactsPerson | None [source]
- class PyXA.apps.Contacts.XAContactsPhone(properties)[source]
Bases:
XAContactsContactInfo
A phone number associated with a contact in Contacts.app.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsPhoneList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsContactInfoList
A wrapper around lists of contact phone numbers that employs fast enumeration techniques.
All properties of contact phone numbers can be called as methods on the wrapped list, returning a list containing each phone numbers’s value for the property.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsRelatedName(properties)[source]
Bases:
XAContactsContactInfo
A related name of a contact in Contacts.app.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsRelatedNameList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsContactInfoList
A wrapper around lists of contact related names that employs fast enumeration techniques.
All properties of contact related names can be called as methods on the wrapped list, returning a list containing each related names’s value for the property.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsSocialProfile(properties)[source]
Bases:
XASBWindow
A social profile associated with a contact in Contacts.app.
New in version 0.0.7.
Attributes:
A persistent unique identifier for this profile.
The service name of this social profile.
The URL of the social profile.
A service-specific identifier used with this social profile.
The user name used with this social profile.
- property id: str
A persistent unique identifier for this profile.
- property service_name: str
The service name of this social profile.
- property url: str
The URL of the social profile.
- property user_identifier: str
A service-specific identifier used with this social profile.
- property user_name: str
The user name used with this social profile.
- class PyXA.apps.Contacts.XAContactsSocialProfileList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of contact social profiles that employs fast enumeration techniques.
All properties of contact social profiles can be called as methods on the wrapped list, returning a list containing each social profile’s value for the property.
New in version 0.0.7.
Methods:
by_id
(id)by_service_name
(service_name)by_url
(url)by_user_identifier
(user_identifier)by_user_name
(user_name)id
()url
()- by_id(id: str) XAContactsSocialProfile | None [source]
- by_service_name(service_name: str) XAContactsSocialProfile | None [source]
- by_url(url: str) XAContactsSocialProfile | None [source]
- by_user_identifier(user_identifier: str) XAContactsSocialProfile | None [source]
- by_user_name(user_name: str) XAContactsSocialProfile | None [source]
- class PyXA.apps.Contacts.XAContactsURL(properties)[source]
Bases:
XAContactsContactInfo
A URL associated with a contact in Contacts.app.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsURLList(properties: dict, filter: dict | None = None)[source]
Bases:
XAContactsContactInfoList
A wrapper around lists of contact URLs that employs fast enumeration techniques.
All properties of contact URLs can be called as methods on the wrapped list, returning a list containing each URL’s value for the property.
New in version 0.0.7.
- class PyXA.apps.Contacts.XAContactsWindow(properties)[source]
Bases:
XASBWindow
A window of Contacts.app.
New in version 0.0.7.
Attributes:
The documents currently displayed in the window.
- property document: XAContactsDocument
The documents currently displayed in the window.