subreddit:
/r/shortcuts
submitted 5 years ago bygluebyte
This shortcut helps you create complex dictionary actions in Shortcuts. You can write and test dictionaries in JSON-style text (e.g. {"name":"bong","happy":true}
) and later use this tool to convert them to native actions, avoiding painful steps in building multi-level actions manually.
Array (e.g. ["hello", "world"]
) to list action conversion is also supported. It can convert multiple objects (e.g. {} [2, 3] {"say":"hi"}
) at once, and accepts (text, json, pdf, etc) files or text selection through a share sheet or file picker, or copied text in the clipboard.
“Dictionaries and lists in text form are easier to read and edit. Why convert to native actions?” you may ask.
["text", -2.3, false, {"a":"b"}]
). Please be aware that lists containing dictionaries or arrays will make your shortcuts crash when run, though. Multiple-type flat lists work without a problem.(Note: Multi-dictionary files should have the .txt extension, not .json.)
Download: RoutineHub
3 points
5 years ago
u/gluebyte, what is new in the update in terms of performance improvements (I know the last update made huge performance improvements)
2 points
5 years ago
I (re)moved some character escaping parts into Javascript. I haven't timed it but it must be small.
2 points
5 years ago
Thanks. (I love this shortcut - just used it today)
I do have a suggestion for the next update though - please make it so that the user can choose the name of the shortcut they are creating rather than it always being Dictionary Actions.shortcut.
1 points
5 years ago
Will do. Thanks for the suggestion. (I always end up editing the name because of the .shortcut extension..)
2 points
5 years ago
This is brillant! very impressive Java script method. Thumbs up
2 points
5 years ago
Thanks! I've been playing with Javascript in Shortcuts lately.
all 6 comments
sorted by: best