ShareShortcuts
Fork “Paste to Jar”

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 blue 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
44K
Saved
1
Actions
10
Category
Productivity
Version
1.0
Language
EN

Preview

Paste to Jar Shortcut

Transfer a set number of items from Paste to Data Jar.

PastetoJar

Requirements

This shortcut will transfer a set number of items from Paste to a Data Jar of your specification. You will also be asked to specify the default number of items upon installation.

It should function on both macOS and iOS.

Contact

What's New

Version 1.0

First release

Version History
1.0 Feb 11, 2022

First release

What it does

10 actions
  1. Comment
    Transfer a set number of items from Paste to Data Jar. My contact information: Email: [email protected] Contact card: bit.ly/whoisdavidblue RoutineHub Profile: https://routinehub.co/user/blue GitHub: https://github.com/extratone/i Telegram: t.…
  2. Number
  3. Set Variable
    index
  4. Ask for Input
    Number of items to transfer.
  5. Repeat
  6. Get Variable
  7. Calculate
  8. Set Variable
    index
  9. Get Item At Index
    com.wiheads.paste
  10. Insert Value In Array
    dk.simonbs.DataJar

View as code
Beta

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

#define color darkorange
#define glyph chainlink

/*
Transfer a set number of items from Paste to Data Jar.

My contact information:

Email: [email protected]
Contact card: bit.ly/whoisdavidblue
RoutineHub Profile: https://routinehub.co/user/blue
GitHub: https://github.com/extratone/i
Telegram: t.me/extratone
Twitter: twitter.com/NeoYokel
Reddit: reddit.com/u/asphaltapostle
Mastodon: mastodon.social/@DavidBlue
EVERYWHERE: bit.ly/dbrolodex
*/
@index = 0
const ProvidedInput = prompt("Number of items to transfer.", "Number")

repeat _ for ProvidedInput {
	// TODO: Get Variable not supported: Assign variable here to '@index'.
	@index = @index + 1
	rawAction("com.wiheads.paste.GetItemAtIndexIntent", {
		"index": "@index",
		"pinboard": ""
	})
	rawAction("dk.simonbs.DataJar.InsertValueInArrayIntent", {
		"keyPath": "paste",
		"valueConversionMode": "automatic",
		"values": "Content"
	})
}
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 blue

See All

You Might Also Like

See All
Advertisement