Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Capture Screenshot of Website

A simple script to capture a screenshot of a list of websites.

#!/bin/sh
# start a server with a specific DISPLAY
vncserver :11 -geometry 1024x768

# start firefox in this vnc session
firefox -display :11

# read URLs from a data file in a loop
count=1
while read url
do
    # send URL to the firefox session
    firefox -display :11 $url

    # take a picture after waiting a bit for the load to finish
    sleep 5
    import -window root image$count.jpg
done < url_list.txt

# clean up when done
vncserver -kill :11

Defeat Apple's Anti-DVD-Screenshot DRM

Apple disables the OS X screenshot capability while a DVD is playing, but there is a workaround.

Using terminal, type in this command.
screencapture -i ~/Desktop/filename.jpg


Your mouse should turn into crosshairs. Now hit the space bar. Your mouse should now be a camera. Click the window the DVD is playing in. A file called "filename.jpg" will appear on your desktop.

Found here with many more options:
http://highschoolblows.blogspot.com/2005/11/take-screenshot-of-dvd-player-in-os-x.html