Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a screenshot and display it immediately' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a screenshot and display it immediately
Authored by: dkulp on Jan 04, '06 01:27:39PM
No need for AppleScript to call a shell script. Just pass the commands to the shell.

Save to /tmp and use the shell's process ID to allow for multiple simultaneous grabs. /tmp will get cleaned up during the next reboot.

Use PNG for lossless screen capture. PNG is usually better for screenshots since it's often vector graphics.

grab.scpt:
do shell script "screencapture -i /tmp/grab.$$.png; open -a Preview /tmp/grab.$$.png"

[ Reply to This | # ]