Scan with your iPhone to install
Extract key/values from a dictionary action. Can someone do the opposite? (Take a list of keys/values and import them into a dictionary action)
What's New
Version 1.0
First release
What it does
11 actions-
Choose from Menu
-
Choose from MenuKeys
-
Dictionary
-
Get Dictionary Value
-
Combine Text
-
Quick Look
-
Choose from MenuValues
-
Dictionary
-
Get Dictionary Value
-
Combine Text
-
Quick Look
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color taupe
#define glyph lifePreserver
menu nil {
item "Keys":
const Dictionary = {
"Eight": "8",
"Five": "5",
"Four": "4",
"Nine": "9",
"One": "1",
"Seven": "7",
"Six": "6",
"Ten": "10",
"Three": "3",
"Two": "2"
}
const DictionaryValue = getKeys(Dictionary)
const CombinedText = joinText(DictionaryValue)
quicklook(CombinedText)
item "Values":
const Dictionary1 = {
"Eight": "8",
"Five": "5",
"Four": "4",
"Nine": "9",
"One": "1",
"Seven": "7",
"Six": "6",
"Ten": "10",
"Three": "3",
"Two": "2"
}
const DictionaryValue1 = getValues(Dictionary1)
const CombinedText1 = joinText(DictionaryValue1)
quicklook(CombinedText1)
}
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 theslug
You Might Also Like
Advertisement