How can I make a screenshot?

Programatically, you can use the built-in command-line utility screencapture. Just type “screencapture” in a Terminal window and see the available options.

do shell script "screencapture ~/Desktop/capture.pdf"
--> this will make a screenshot to the file "capture.pdf" at user's desktop