Full Length Webpage to ScrnShots AppleScript
Posted on November 11, 2008
If you’re on a Mac and want to take full length webpage screenshots, I’ve written a little AppleScript which uses the neat little capture utility Paparazzi! and the latest version of ScrnShots Desktop.
First thing you need to do is make sure you have both Paparazzi! and ScrnShots Desktop installed. Then download the script “Take Screenshot of Safari Window” and place it in your ~/Library/Scripts folder.
Voila, you can now run the script and it will take a screenshot of the front most Safari window and place it ready to upload in ScrnShots Desktop.
For ease of use I’ve set up my scripts folder to be accessible via Quicksilver.
Here is the complete source for the AppleScript file:
set filename to (path to desktop) as string set filename to filename & "scrnshots-desktop-script.png" -- You could easily change this to work off any browser you want -- Eg: Change "Safari" to "Firefox" and it should still work tell application "Safari" set current_url to URL of front document end tell tell application "Paparazzi!" set image_created to false capture current_url repeat while busy -- do nothing... end repeat if save as PNG in filename then set image_created to true end if quit end tell tell application "ScrnShots Desktop" uploadFromFile filename activate end tell do shell script ("rm " & (POSIX path of file filename))