ShareShortcuts

StrangeCorrupt

turtle
Fork “StrangeCorrupt”

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 turtle 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
54K
Saved
1
Actions
23
Category
API
Version
1.0
Language
EN

😳 :o

What's New

Version 1.0

First release

Version History
1.0 Jan 6, 2021

First release

What it does

23 actions
  1. Get File
  2. Get Details of Files
  3. Get Details of Files
  4. Replace Text
  5. Replace Text
  6. Replace Text
  7. Replace Text
  8. Replace Text
  9. Replace Text
  10. Replace Text
  11. Replace Text
  12. Replace Text
  13. Replace Text
  14. Replace Text
  15. Replace Text
  16. Replace Text
  17. Choose from Menu
    Are you sure?
  18. Choose from Menu
    Yes
  19. Save File
  20. Show Result
  21. Choose from Menu
    No
  22. Stop This Shortcut
  23. Text

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/text'
#include 'actions/documents'
#define color green
#define glyph person

const f = getFileFromFolder(, "")
const t = getFileDetail(nil, "File Extension")
const n = getFileDetail(nil, "Name")
replaceText("A", "B", f, false)
replaceText("C", "D", false)
replaceText("E", "F", false)
replaceText("G", "H", false)
replaceText("I", "J", false)
replaceText("K", "L", false)
replaceText("M", "N", false)
replaceText("O", "P", false)
replaceText("Q", "R", false)
replaceText("S", "T", false)
replaceText("U", "V", false)
replaceText("W", "X", false)
const UpdatedText = replaceText("Y", "Z", false)

menu "Are you sure?" {
item "Yes":
	saveFile("{n}.{t}", UpdatedText, true)
	show("Saved in /Shortcuts/{n}.{t}")
item "No":
	stop()
}
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 turtle

See All

You Might Also Like

See All
Advertisement