Skip to content

Instantly share code, notes, and snippets.

@EthanRDoesMC
Created March 16, 2022 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EthanRDoesMC/3628296f5c47d533c24baa7d1edf1d70 to your computer and use it in GitHub Desktop.
Save EthanRDoesMC/3628296f5c47d533c24baa7d1edf1d70 to your computer and use it in GitHub Desktop.
Mac Dynamic Desktop Metadata

dynamic desktop metadata

based on https://nshipster.com/macos-dynamic-desktop/

The ap key corresponds to a dictionary containing integers for the d and l keys.

the plaintext reads like so...

// highlighter acting weird
// ignore first/last bracket
{
ap = {
        d = 15;
        l = 0;
    };
}

mattt was unable to figure out what these keys are, and the repository is now read-only, but i'm fairly confident i know what these are.

here are the images in the mojave desktop wallpaper:

mojave dd images, left-to-right, top-to-bottom, 0-15

it's important to note the order in which these occur. the first image is the Light mode still. for some reason i expected the next image to be the dark mode still, ie macos would check for the 0th and 1st images, but that appears not to be the case. however i think that expectation came from how other DDs are ordered. i can't be sure right now, but i believe the catalina dd follows this pattern.

this brings up an interesting pattern: the light and dark stills are not at a hardcoded index. looking at the individual images from the mojave dd, we can see that the light still is at 0, and the dark still is at... 15.

huh.

l stands for light, d stands for dark.

but what does ap stand for? im not quite as confident here, but i think i know.

let's take some context clues. what was added in mojave, specifically in relation to the light and dark stills?

light and dark appearance.

appearance...

appearance...

there it is. appearance-based wallpapers. ap is a dictionary that specifies the light and dark indexes when in appearance-based mode.

addendum

all of this is in a bplist mapped to a metadata key called solar. i suspect this key may differ in some of the more recent appearance-based-only wallpapers, ie big sur graphic. heck, it might be a completely different format. there's more to uncover here, so feel free to add anything you find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment