osx - Get iTunes'/Finder's default album art image -
part of application's functionality gets playing itunes track's album art (using scripting bridge). i'm able fine. however, when track isn't playing, i'd default album art both itunes , finder have. possible code? (or if not, how else?)
fi'm not sure itunes gets it, believe finder gets indirectly, asking quicklook thumbnail file.
so, right answer same thing. either instead of getting album art manually, or fallback if fails, , display quicklook thumbnail.
however, if want quick , dirty, can read resource named "generic artwork 512" of type "png" out of quicklook.framework bundle. little protection against apple moving things around in future, can make sure quicklook loaded, resource in open bundle, you'll still need watch each new os release carefully.
you draw own similar image—this isn't ui component, you're not confusing user drawing non-standard ui components—but won't ideal. , of course hope image simple , generic enough can legitimately copy own app, if you've got lawyers reassure isn't stupid idea sounds.
Comments
Post a Comment