Contacts Actions

Table of contents

  1. Add New Contact
  2. Filter Contacts
  3. Get Contacts
  4. Get Detail of Contact
  5. Remove Contact Detail
  6. Select Contact
  7. Update Contact
  8. Email
    1. Email Address
    2. Get Emails
    3. Select Email Address
  9. Phone
    1. Call
    2. FaceTime Call
    3. Get Phone Numbers
    4. Phone Number
    5. Select Phone Number

To use actions in this category, use this include statement:

#include 'actions/contacts'

Add New Contact

Create a new contact.

newContact(text firstName, text lastName, text phoneNumber, text emailAddress, text company, text notes, bool ?prompt = false)

Filter Contacts

enum contactDetail {
    'First Name',
    'Middle Name',
    'Last Name',
    'Birthday',
    'Prefix',
    'Suffix',
    'Nickname',
    'Phonetic First Name',
    'Phonetic Last Name',
    'Phonetic Middle Name',
    'Company',
    'Job Title',
    'Department',
    'File Extension',
    'Creation Date',
    'File Path',
    'Last Modified Date',
    'Name',
    'Random',
}

enum abcSortOrder {
    'A to Z',
    'Z to A',
}

filterContacts(variable contacts, contactDetail ?sortBy, abcSortOrder ?sortOrder = "A to Z", number ?limit)

Get Contacts

Get contacts from input.

getContacts(variable input): array

Get Detail of Contact

Get a detail about a contact.

enum contactDetail {
    'First Name',
    'Middle Name',
    'Last Name',
    'Birthday',
    'Prefix',
    'Suffix',
    'Nickname',
    'Phonetic First Name',
    'Phonetic Last Name',
    'Phonetic Middle Name',
    'Company',
    'Job Title',
    'Department',
    'File Extension',
    'Creation Date',
    'File Path',
    'Last Modified Date',
    'Name',
    'Random',
}

getContactDetail(variable contact, contactDetail detail)

Remove Contact Detail

Remove detail from contact.

enum contactDetails {
}

removeContactDetail(variable contact, contactDetails detail)

Select Contact

Prompt the user to select a contact or multiple contacts. Returns selected contact.

selectContact(bool ?multiple = false)

Update Contact

enum contactDetail {
    'First Name',
    'Middle Name',
    'Last Name',
    'Birthday',
    'Prefix',
    'Suffix',
    'Nickname',
    'Phonetic First Name',
    'Phonetic Last Name',
    'Phonetic Middle Name',
    'Company',
    'Job Title',
    'Department',
    'File Extension',
    'Creation Date',
    'File Path',
    'Last Modified Date',
    'Name',
    'Random',
}

updateContact(variable contact, contactDetail detail, text value)

Email

Email Address

Create an email address value.

emailAddress(text ...email)

Get Emails

Get emails from input.

getEmails(text input): array

Select Email Address

Prompt the user to select an email address from their contacts.

selectEmailAddress()

Phone

Call

Call a contact.

call(variable contact)

FaceTime Call

Starts a FaceTime audio or video call with the contact.

enum facetimeCallType {
    'Video',
    'Audio',
}

facetimeCall(variable contact, facetimeCallType ?type = "Video")

Get Phone Numbers

Get phone numbers from input.

getPhoneNumbers(variable input): array

Phone Number

Create a phone number value.

phoneNumber(text ...number)

Select Phone Number

Prompt the user to select a phone number from their contacts.

selectPhoneNumber()

Copyright ©. Distributed under the GPL-2.0 License. Siri Shortcuts and Mac are registered trademarks of Apple Inc. Apple is not involved in this project in any way. Do not contact Apple Support unless you are having an issue with the Shortcuts app itself.