This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- A script to have Paparazzi! <http://www.derailer.org/paparazzi/> take a screentshot | |
-- and save it. | |
-- by Benny Wong | |
-- 2008/10/02 | |
-- | |
-- Shamelessly adapted from <http://bbs.macscripter.net/viewtopic.php?pid=82666> | |
-- | |
-- Usage: | |
-- $ osascript screenshotous.scpt URL FILENAME | |
-- | |
on run argv | |
tell application "Paparazzi!" | |
set minsize to {1024, 768} | |
capture item 1 of argv crop size minsize | |
repeat while busy | |
-- To wait until the page is loaded. | |
end repeat | |
save as JPEG in POSIX path of item 2 of argv | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment