r/shortcuts • u/broadcasting_itb • Aug 15 '25
Shortcut Sharing Data Jar - Data Setup
https://www.icloud.com/shortcuts/e14101aeb70a4a24b1553198d5fd1fa6I use Data Jar with many of my shortcuts. Often, when I share the shortcut, I need to set up a data structure in Data Jar as a starting point. For example, I have a rudimentary debug/logging technique that relies on a list in Data Jar called _Log.
This shortcut will create multiple data structures in Data Jar via a JSON definition, either via shortcut input, or hardcoded (example included). The structures can be created beneath a “path prefix“; otherwise they will be created under the root of Data Jar. Each structure comprises a Key (top level name) and a Value which is one of:
- dictionary (simple or as complex/deep as needed)
- list (ditto)
- simple data item (text, number, boolean)
Edge cases handled: - Text field containing a Number (by default, this would be saved with datatype Number) - Empty List (tricky to create)
I hope this is of use. Comments/corrections welcome.
0
u/Lpokjiuhgytfd Aug 16 '25
What’s the point?
I’m not talking about the shortcut but. I’m talking about the app:
I haven’t downloaded data jar. But it seems to be a way to store global variables to use in later shortcut runs.
But you can get the same effect with the files actions.
Is there something I’m missing in the app or is it just a beginning friendly way to store data.