Skip to content

Instantly share code, notes, and snippets.

Created October 3, 2008 03:29
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
-- A script to have Paparazzi! <> take a screentshot
-- and save it.
-- by Benny Wong
-- 2008/10/02
-- Shamelessly adapted from <>
-- 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