A few things first:
I live in an area where "high=speed Internet" means early 1950s copper
wire. Fortunately our local public library has the good stuff.
I recently updated my iMac to macOS Sonoma, and have been trying to play
with the Aerial screen savers. This is mostly a fool's errand, as all my available bandwidth gets sucked up, and I can't do anything else online.
I have a MacBook Air that's stuck at macOS Monterey that I can take to
the aforementioned library. That along with the contents of the file...
</Library/Application Support/com.apple.idleassetsd/Customer/entries.json>
...gives me everything I need to download ALL the videos
All that said, I want to write a Shortcuts script that can parse each "Dictionary" from the "assets" array, and extract "url-4_240FPS" and
"id" so I can build a shell script I can take to the library on my old MacBook to download ALL the videos.
I have parsed simple JSON files before in Shortcuts, but it was some
time ago, and whatever I learned has escaped my elderly brain.
Can someone help me out here, or point me to a site where the answer
lies? Thanks.
On 2023-10-08, Chris Schram <chrispam1@me.com> wrote:
A few things first:
I live in an area where "high=speed Internet" means early 1950s copper
wire. Fortunately our local public library has the good stuff.
I recently updated my iMac to macOS Sonoma, and have been trying to play
with the Aerial screen savers. This is mostly a fool's errand, as all my
available bandwidth gets sucked up, and I can't do anything else online.
I have a MacBook Air that's stuck at macOS Monterey that I can take to
the aforementioned library. That along with the contents of the file... >></Library/Application Support/com.apple.idleassetsd/Customer/entries.json>
...gives me everything I need to download ALL the videos
All that said, I want to write a Shortcuts script that can parse each
"Dictionary" from the "assets" array, and extract "url-4_240FPS" and
"id" so I can build a shell script I can take to the library on my old
MacBook to download ALL the videos.
I have parsed simple JSON files before in Shortcuts, but it was some
time ago, and whatever I learned has escaped my elderly brain.
Can someone help me out here, or point me to a site where the answer
lies? Thanks.
I don't have /Library/Application Support/com.apple.idleassetsd on my
Ventura systems, and am not running Monterey anymore. So I can't look at
this file.
Anywa, the Shortcuts User Guide has a section under Advanced shortcuts
about using Web APIS in shortcuts with a whole section about working
with JSON:
<https://support.apple.com/guide/shortcuts/welcome/ios>
And in the spirit of not reinventing the wheel, have you considered
simply installing the open source Aerial screen saver?
<https://aerialscreensaver.github.io>
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 349 |
Nodes: | 16 (0 / 16) |
Uptime: | 142:34:17 |
Calls: | 7,613 |
Calls today: | 1 |
Files: | 12,790 |
Messages: | 5,684,458 |