Sharing Actions

Table of contents

  1. Share
  2. AirDrop
    1. AirDrop
    2. Set AirDrop Receiving
  3. Clipboard
    1. Get Clipboard
    2. Set Clipboard
  4. Email & SMS Messaging
    1. Find Conversation
    2. Find Email
    3. Find Message
    4. Send Email
    5. Send Message

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

#include 'actions/sharing'

Share

Prompt the user to share input.

share(variable input)

AirDrop

AirDrop

Prompt the user to AirDrop input.

airdrop(variable input)

Set AirDrop Receiving

Set the AirDrop receiving setting.

enum airdropReceivingStates {
    'No One',
    'Contacts Only',
    'Everyone',
}

setAirdropReceiving(airdropReceivingStates ?state = "Everyone")

Clipboard

Get Clipboard

Get the contents of the clipboard.

getClipboard()

Set Clipboard

Set the contents of the clipboard.

setClipboard(variable value, bool ?local = false, text ?expire)

Email & SMS Messaging

Find Conversation

Find SMS/iMessage conversation.

findConversation(text search)

Find Email

Find email.

findEmail(text search)

Find Message

Find SMS/iMessage message.

findMessage(text search)

Send Email

Send an email to a contact.

sendEmail(variable contact, text from, text subject, text body, bool ?prompt = true, bool ?draft = false)

Send Message

Send an SMS/iMessage to a contact.

sendMessage(variable contact, text message, bool ?prompt = true)

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.