ShareShortcuts

Clear Clipboard 1

Clears your clipboard and this shortcut can have a lock on it if you want

tbb
Fork “Clear Clipboard 1”

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
25
Category
API
Version
3.0
Language
EN

Clears your clipboard and this shortcut can have a lock on it if you want.

What's New

Version 3.0

Clear clipboard

Version History
3.0 Sep 1, 2020

Clear clipboard

2.0 Aug 24, 2020

Fixes a lot of things

1.0 Aug 24, 2020

First release

What it does

25 actions
  1. Dictionary
  2. Run Shortcut
    SS Updater
  3. Text
  4. If
  5. Ask for Input
    Enter Passcode
  6. If
  7. Show Result
  8. Stop This Shortcut
  9. If
  10. If
  11. Create Folder
  12. Get File
  13. Count
  14. If
  15. Show Result
  16. Save File
  17. If
  18. Show Alert
    Are you sure?
  19. Get Clipboard
  20. Text
  21. Copy to Clipboard
  22. Choose from Menu
    Undo?
  23. Choose from Menu
    YES!!
  24. Copy to Clipboard
  25. Choose from Menu
    No

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/documents'
#define color blue
#define glyph gear

const Dictionary = {
	"Name": "Clear Clipboard",
	"ShareID": 1051,
	"Version": "2.0"
}
runSelf(Dictionary)
const Text = "9278"

if Text {
	const ProvidedInput = prompt("Enter Passcode", "Number")
	if ProvidedInput != Text {
		show("WRONG PASSCODE!")
		stop()
	} else {
	}
} else {
}
createFolder("Passcode for clear clipboard is...")
const File = getFile("Passcode for clear clipboard is...")
const Count = count(File)

if Count < 1 {
	show("Hello! I see you are new to this shortcut! This shortcut can clear your clipboard and has a lock on it so you can protect other people from clearing your clipboard. If you want more of my shortcuts they are in shareshortcuts.com and my name is tbb. Thank you for using this shortcut!")
	saveFile("Passcode for clear clipboard is...", Text)
} else {
}
alert("All of your copied information will be gone", "Are you sure?")
getClipboard()
const Text1 = "{}"
setClipboard(, CurrentDate)

menu "Undo?" {
item "YES!!":
	setClipboard(Text1)
item "No":
}
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