Screenshots of Quick Look windows in Leopard are themselves transparent

One thing I find incredibly neat is that screenshots I’ve taken of Quick Look windows in Leopard are actually transparent — I can layer them on top of other graphics in applications such as Keynote, and the backgrounds show through.

macosx-workstation-leopard-quicklook-textedit.png

I’m sure this sort of thing happened if you took screenshots of transparent windows in Tiger, but I never bothered. The windows weren’t everywhere. Quick Look is everywhere in the Finder, and as a Big New Feature With A Marketing Name, having screenshots when you’re explaining it to others is really handy.

For reference, I’m using a Python script to take the screenshots. It’s basically calling the built-in screencapture tool and then adding a drop shadow to it with the Python Core Graphics bindings. I got the script from Lankhmart on the Mac OS X Hints forums — I found it after trying to write my own, since I’d been wanting such a script for a long time.