ShareShortcuts

Dictionary Generator

- Create dictionary for your shortcuts easier than ever!

arirafiq
Fork “Dictionary Generator”

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 arirafiq 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
40K
Saved
0
Actions
26
Category
API
Version
1.0
Language
EN

Preview

  • Create dictionary for your shortcuts easier than ever!

What's New

Version 1.0

First release

Version History
1.0 Jul 24, 2022

First release

What it does

26 actions
  1. Comment
    Author: Ari R. Abdulla Usage: - Create dictionary for your shortcuts easier than ever!
  2. Text
  3. Comment
    Enter your first values here.
  4. Split Text
  5. Repeat with Each
  6. Get Item from List
  7. Set Variable
    First
  8. Text
  9. Comment
    Enter your second values here.
  10. Split Text
  11. Calculate
  12. Number
  13. Get Item from List
  14. Set Variable
    Second
  15. Combine Text
  16. Split Text
  17. Text
  18. Combine Text
  19. Copy to Clipboard
  20. Text
  21. Get Item from List
  22. Replace Text
  23. Replace Text
  24. Text
  25. Copy to Clipboard
  26. Show Result

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/sharing'
#define color blue
#define glyph list

/*
Author: Ari R. Abdulla
Usage:
- Create dictionary for your shortcuts easier than ever!
*/
const Text = "My\nFirst\nWords"
// Enter your first values here.

const SplitBrand = splitText(Text)

const RepeatResults = for _ in SplitBrand {
	getRandomItem(@RepeatItem)
	@First
	const Text1 = "My\nSecond\nWords"
	// Enter your second values here.

	const SplitAPIs = splitText(Text1)
	const CalculationResult = 1 + Number
	const Number = number(CalculationResult)
	getListItems(SplitAPIs, 1, 70)
	@Second
	const CombinedText = joinText([map[Value:map[attachmentsByRange:map[{3, 1}:map[Type:Variable VariableName:First]] string:  "] WFSerializationType:WFTextTokenString] map[Value:map[attachmentsByRange:map[{0, 1}:map[Type:Variable VariableName:Second]] string:] WFSerializationType:WFTextTokenString]], "": "")
	splitText(CombinedText, "
")
	joinText([map[Value:map[attachmentsByRange:map[{0, 1}:map[OutputName:Split Text OutputUUID:7E8BD7E0-F807-430E-914A-A7F13C993516 Type:ActionOutput]] string:] WFSerializationType:WFTextTokenString] map[Value:map[attachmentsByRange:map[{0, 1}:map[OutputName:Text OutputUUID:1500673F-2722-4D5E-B491-F781F4BC53D2 Type:ActionOutput]] string:] WFSerializationType:WFTextTokenString]], "",")
}
setClipboard(RepeatResults)
getRandomItem()
replaceText(",", "", false, false)
replaceText()
const Text2 = "{\n{}\n}"
setClipboard(Text2)
show(Text2)
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 arirafiq

See All

You Might Also Like

See All
Advertisement