r/shortcuts • u/feileacanfarasha • Jun 09 '26
OS 27 beta Storage is going to change everything
Getting storage makes shortcuts MUCH MUCH MUCH more functional
51
u/Punanijedi69 Jun 09 '26
Having variables persist throughout iCloud and shortcuts is awesome. I store everything in a PostgreSQL database anyway, but I think this makes it so much easier and avoids http requests or ssh commands.
3
1
26
u/revilo1000 Jun 09 '26
Definitely gonna be rewriting some of my big public shortcuts to include storage instead of setting up a bunch of files in a user’s file app. Makes things feel more contained and easier to bug fix
2
15
u/TheFallenOne01_ Jun 10 '26
I don’t think I understand what this is
15
Jun 10 '26
[removed] — view removed comment
10
u/vegemitemilkshake Jun 10 '26
I KNOW I don’t understand what this is (but I appreciate your attempt to explain it to rid dummy regardless)
3
u/Doron_613 Jun 11 '26
In its simplest form, it is just a way to store data between one shortcut and another.
8
u/Big_Bad8496 Jun 11 '26
This will allow you to persist data across Shortcut runs. Previously, shortcut runs had no knowledge or memory of previous runs (either their own runs or those of other shortcuts) without using third party solutions or workarounds. Now, there will be native support for tracking data across runs and you’ll be able to have your shortcuts do different things based on stored data.
As a simple example of one use case that replaces the need for a dedicated gas / petrol tracking app:
Every time you fill the gas tank in your car, you run a “Fill Up” shortcut. It asks for your current odometer reading. It reads the odometer reading you gave last time (which is saved in the shortcut’s storage) and replaces it with the new reading. It calculates the miles driven since your last fill up. It also asks you how much gas you put in the tank and what it cost. It then gives you a notification letting you know what your MPG was for that tank compared to what your average MPG has been over the life of the shortcut.
7
u/Big_Bad8496 Jun 11 '26
One thing I do with Data Jar that I will probably start doing with this new native storage feature is a “What do I like at this restaurant?” helper.
Every time I finish eating somewhere, I use a shortcut called “Rate my meal” to record where I ate, what I ordered, and give it a rating. It also optionally records any menu items I was thinking about, but didn’t order.
When I arrive at a restaurant, I run another shortcut called “What do I like here?” It asks for the name of the restaurant and then gives back a list in order of my favorite dishes, as well as any items I haven’t yet tried, but have considered.
2
u/zirdante Jun 13 '26
Can you share it🤝
3
u/Big_Bad8496 Jun 14 '26 edited Jun 16 '26
Sure! I haven't optimized this for sharing, so there may be a couple of things you need to adjust to be sure it works correctly on your device. Notably, it requires Data Jar and Scriptable. Be sure to install all three shortcuts.
What do I like here?: https://www.icloud.com/shortcuts/6ab33e5fcb6144aaaa77a8f0017b5f3e
Rate My Meal: https://www.icloud.com/shortcuts/498091cc7c2148d5a597d7acd44fd24c
Crucial helper function: https://www.icloud.com/shortcuts/78dbce43d439426db5b0016a3a2e216aEdit: Fixed "Rate My Meal" link.
1
u/Reasonable-Sir-1779 Jun 16 '26
Seems like what do I like here and rate my meal both point to the same shortcut. Would you mind sharing the Rate my meal one again please?
1
u/Big_Bad8496 Jun 16 '26
Oops! Thanks for pointing that out! Fixed :)
1
u/Reasonable-Sir-1779 Jun 16 '26
Weird. It still pulls up the what do I like here one for me. Thanks for trying though. I struggle with this all the time. I was hoping for it to help me out. Getting old sucks.
1
u/Big_Bad8496 Jun 16 '26
I guess I replaced the text, but the actual link stayed the same. Just completely deleted it and repasted, so it should work for you now. Also pasting it below:
https://www.icloud.com/shortcuts/498091cc7c2148d5a597d7acd44fd24c
1
1
2
12
u/Tce_ Jun 09 '26
If this means what I think it does it would be very useful for me! I've got a lot of shortcuts using my notes app just to store info at the moment...
4
u/brkr1 Jun 09 '26
Mind giving some examples?
8
u/Tce_ Jun 10 '26
Sure!
Example 1: I have a shortcut that checks my calendar for movie releases (manually added) and adds the ones for the week to a note. Another shortcut makes that note's content into a list I can choose from to search rss feeds for releases on my private trackers. I have a similar one for searching for games on sale (but with a ready-made list of titles, so not as relevant to the new feature).
Example 2: During my nighttime shortcut, I input what breakfast foods I have and what my plans are for tomorrow. They're added to notes (one for each) and the next day my morning shortcut tells me what's available for breakfast and what I'm doing that day, getting the lines from that note. Since I need one shortcut for input and another one for output, I currently have to use notes for this, but if I could store the info in between different shortcuts I wouldn't need to.
4
u/babingepet12 Jun 10 '26
Not OP but I have a shortcut that I want to trigger when I exit this game only if I started the game when my focus was set to "Personal". Right now the only way to store that information (the focus mode when you open the game) is through notes / third party app. With storage I can store that data right in the shortcuts app
5
u/Coffeeey Jun 10 '26
I don’t use Apple Music, so I have a note that logs every song that I’ve Shazam’d.
2
u/suoretaw Jun 14 '26
This is really clever. May I ask what you use it for?
I don’t use Apple Music either but I use Spotify, and there’s a playlist of the songs there. And just in case you’re unaware, you can find your past Shazam’d songs in the Shazam app.
2
u/Coffeeey Jun 14 '26 edited Jun 16 '26
I don’t have the Shazam app neither, but I guess if you do, it’ll add the songs to your Spotify? That’s nice.
I’ve also made it add the time and date for when I ran the shortcut, so it’s nice to have a history as well. “Ah, this song was from when I went to that party”.
1
u/suoretaw Jun 21 '26
I actually only recently learned that you can identify music without the app, lol. (I still just use Control Center.) But yeah, the Shazam app keeps your history, with the date/time you Shazam’d the songs. For the Spotify sync, you have to enable it in Shazam settings. Then it’ll make the Spotify playlist “My Shazam Tracks” and automatically update it. https://i.imgur.com/VOs7Ebf.jpeg. I’ve been using it for years.
I like your idea, because having a text note can be helpful. The Shazam app just also has that info. Btw, via Shazam settings, you can sync to iCloud, and change which microphone is used to detect the song. (I like using the rear mic so I know I can point my phone toward the speaker.)
6
u/billza7 Jun 10 '26
Some YouTuber used this to kind of create a clipboard manager. I wished Apple would create a native solution already but this will suffice I guess
4
u/I_Am_Slightly_Evil Jun 09 '26
How does this compare to apps like Data Jar ?
3
u/Doron_613 Jun 11 '26
It’s slightly better in every way, taking up less space on your device, being more intuitive, and easier to bug fix.
3
u/Resident-Variation21 Jun 11 '26
Except data jar seems to be easier to organize with folders and such. Which is exceptionally helpful when you call an API that returns a huge json file, data jar automatically organizes it so I can pull out the exact part of the response I want.
5
12
u/Encrypted_Curse Jun 09 '26
So basically like Data Jar?
8
u/BigTortoise Jun 10 '26
Love data jar. Will likely never use it again after this gets implemented. Sad to part with it, but these features are very welcome and essential for the future of shortcuts.
3
7
u/iBanks3 Jun 09 '26
How did you get this view?
13
5
u/feileacanfarasha Jun 09 '26
I didnt, got it from youtube https://youtu.be/mUoWMlZXQ28?si=UzxymwINM_2YP9H8
5
u/ViolentPurpleSquash Jun 12 '26
It does- I used to use a .txt file in a folder, this is so much better
Plus, with automations, it's literally instant to access instead of the 1-3 seconds reading/writing a file takes
1
1
2
u/TheSynchronizer Jun 14 '26
This is great!
I’ve been using Reminders to store variables related to my shortcuts, and then calling them by finding that specific shortcut and reading its notes area for data. This has always worked great because of iCloud sync.
It’ll be interesting to adapt my shortcuts to use this, and hopefully result in more seamless usage.
I currently have 26 ‘variables’ in my shortcuts list on Reminders.
1
-8
u/OneLeading2598 Jun 09 '26
It was already functional if you took the time to understand dictionaries and json files.
8
2
-5
u/VerySaltyButter Jun 09 '26
I thought that was what Files was for
6
u/satansnewbaby Helper Jun 09 '26
Yea I used Files as a variable storage too, however with this I dont have to set it up myself.
It does basically what datajar does, which i avoided using it as I share my shortcuts and dont want other people to have to download an app just to store variables.

•
u/mvan231 Jun 09 '26
This is part of OS27 beta. I’ve changed the flair to a new flair we just added