ShareShortcuts

C++

C++ made in shortcuts

outlander2007
Fork “C++”

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 outlander2007 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
45K
Saved
1
Actions
18
Category
Utilities
Version
1.0
Language
EN

C++ made in shortcuts

What's New

Version 1.0

First release

Version History
1.0 Jan 7, 2022

First release

What it does

18 actions
  1. Text
  2. Text
  3. Show Result
  4. Choose from Menu
  5. Choose from Menu
    Save to Notes📝
  6. Copy to Clipboard
  7. Create Note
  8. Choose from Menu
    Save to clipboard📋
  9. Copy to Clipboard
  10. Choose from Menu
    Save as PDF file
  11. Copy to Clipboard
  12. Make PDF
  13. Save File
  14. Show Notification
    …
  15. Choose from Menu
    Save as txt file
  16. Copy to Clipboard
  17. Save File
  18. Show Notification
    …

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'
#define color darkorange
#define glyph documentOutline

const Text = "Added autosave to clipboard when pressing on a \\"save as\\" button to recover your work if you pressed the wrong button.\nNew design.etc...\nHope you enjoy it.😊"
show(Text)

menu nil {
item "Save to Notes📝":
	setClipboard(Text)
	rawAction("com.apple.mobilenotes.SharingExtension", {
		"WFCreateNoteInput": "{Text}"
	})
item "Save to clipboard📋":
	setClipboard(Text)
item "Save as PDF file":
	setClipboard(Text)
	const PDF = makePDF(Text, true)
	saveFilePrompt(PDF)
	showNotification(, PDF)
item "Save as txt file":
	setClipboard(Text)
	saveFilePrompt(Text)
	showNotification(, @cpp)
}
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 outlander2007

See All

You Might Also Like

See All
Advertisement