Skip to content

Instantly share code, notes, and snippets.

@bdotdub
Created October 3, 2008 03:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdotdub/14497 to your computer and use it in GitHub Desktop.
Save bdotdub/14497 to your computer and use it in GitHub Desktop.
-- 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