-
-
Save levihuayuzhang/e638db412200476fdc8ff418f17ecd74 to your computer and use it in GitHub Desktop.
Download all macOS Sonoma Aerial wallpaper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# This script helps those who want to | |
# get all Aerial wallpapers on macOS Sonoma | |
# all at once instead of clicking on settings one by one. | |
# Dependencies: jq, parallel | |
# Install all dependencies via `brew install jq parallel` | |
# After `parallel` installed run `sudo parallel --citation` first to read citation notice (IMPORTANT) | |
# The follwing script SHOULD be run under root user (IMPORTANT) | |
cd "/Library/Application Support/com.apple.idleassetsd/Customer" && \ | |
cat entries.json | \ | |
jq -r '.assets[] | (.id + "," + .["url-4K-SDR-240FPS"])' | \ | |
parallel \ | |
wget \ | |
--no-check-certificate -q \ | |
-O './4KSDR240FPS/{= s:\,[^,]+$::; =}.mov' \ | |
'{= s:[^,]+\,::; =}'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd "/Library/Application Support/com.apple.idleassetsd/Customer" && cat entries.json | jq -r '.assets[] | (.id + "," + .["url-4K-SDR-240FPS"])' | parallel wget --no-check-certificate -q -O './4KSDR240FPS/{= s:\,[^,]+$::; =}.mov' '{= s:[^,]+\,::; =}'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment