ShareShortcuts

Custom Contact Email

tbb
Fork “Custom Contact Email”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so tbb gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
57K
Saved
1
Actions
19
Category
API
Version
1.0
Language
EN

This shortcut makes a configuration profile so when you install it and tap the icon, it will straightaway email the desired person!

What's New

Version 1.0

First release

Version History
1.0 Aug 18, 2020

First release

What it does

19 actions
  1. Ask for Input
    Profile Name
  2. Set Variable
    Name
  3. Ask for Input
    Profile Maker/Developer
  4. Set Variable
    Dev
  5. Ask for Input
    Consent Text
  6. Set Variable
    Consent
  7. Ask for Input
    Description
  8. Set Variable
    Description
  9. Ask for Input
    Name for Icon (Usually the person’s name)
  10. Ask for Input
    Their email address
  11. Text
  12. Ask for Input
    Identifier
  13. Select Photos
  14. Base64 Encode
  15. Text
  16. Set Name
  17. Choose from Menu
  18. Choose from Menu
    Share
  19. Share

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/sharing'
#include 'actions/photos'
#define glyph paperclip

@Name = prompt("Profile Name")
prompt("Profile Maker/Developer")
@Dev
prompt("Consent Text")
@Consent
prompt("Description")
@Description
const WebClipName = prompt("Name for Icon (Usually the person’s name)")
const URL = prompt("Their email address")
const Identifier = prompt("Identifier")
const Photos = selectPhotos()
base64Encode(Photos)
const Text = "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\r\n<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">\r\n<plist version=\\"1.0\\">\r\n<dict>\r\n<key>ConsentText</key>\r\n<dict>\r\n<key>default</key>\r\n<string>{@Consent}</string>\r\n</dict>\r\n <key>PayloadContent</key>\r\n <array>\r\n   <dict>\r\n     <key>FullScreen</key>\r\n     <true/>\r\n     <key>Icon</key>\r\n     <data>{}</data>\r\n     <key>IsRemovable</key>\r\n     <true/>\r\n     <key>Label</key>\r\n     <string>{WebClipName}</string>\r\n     <key>PayloadDescription</key>\r\n     <string>Adds a Web Clip.</string>\r\n     <key>PayloadDisplayName</key>\r\n     <string>Web Clip ({WebClipName})</string>\r\n     <key>PayloadIdentifier</key>\r\n     <string>{Identifier}</string>\r\n     <key>PayloadOrganization</key>\r\n     <string>{@Dev}</string>\r\n     <key>PayloadType</key>\r\n     <string>com.apple.webClip.managed</string>\r\n     <key>PayloadUUID</key>\r\n     <string>c3b2c123-6253-464e-afde-0d987400da0f</string>\r\n     <key>PayloadVersion</key>\r\n     <integer>1</integer>\r\n     <key>Precomposed</key>\r\n     <false/>\r\n     <key>URL</key>\r\n     <string>{}</string>\r\n   </dict>\r\n </array>\r\n <key>PayloadDescription</key>\r\n <string>{@Description}</string>\r\n <key>PayloadDisplayName</key>\r\n <string>{@Name}</string>\r\n <key>PayloadIdentifier</key>\r\n <string>{Identifier}</string>\r\n <key>PayloadOrganization</key>\r\n <string>{@Dev}</string>\r\n <key>PayloadRemovalDisallowed</key>\r\n <false/>\r\n <key>PayloadType</key>\r\n <string>Configuration</string>\r\n <key>PayloadUUID</key>\r\n <string>345097fb-d4f7-4a34-ab90-2e3f1ad62eed</string>\r\n <key>PayloadVersion</key>\r\n <integer>1</integer>\r\n</dict>\r\n</plist>"
const RenamedItem = setName(Text, "{@Name}.mobileconfig")

menu nil {
item "Share":
	share(RenamedItem)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by tbb

See All

You Might Also Like

See All
Advertisement