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


Click here to return to the 'use screencapture instead' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
use screencapture instead
Authored by: Diggory on Mar 18, '03 10:45:16AM
Use the shell command "screencapture" instead.

usage: screencapture [-icmwsWx] [file] [cursor]
-i capture screen interactively, by selection or window
control key - causes screen shot to go to clipboard
space key - toggle between mouse selection and
window selection modes
escape key - cancels interactive screen shot
-c force screen capture to go to the clipboard
-m only capture the main monitor, undefined if -i is set
-w only allow window selection mode
-s only allow mouse selection mode
-W start interaction in window selection mode
-x do not play sounds
file where to save the screen capture

e.g. this applescript:

do shell script "screencapture -i ~/myScreenShot.pdf"

will allow you to choose what part of the screen to capture (-i) and will save the file to ~/myScreenShot.pdf

Note - the file format is defined by system defaults - *not* by the extension you give - so trying myScreenshot.jpg will give you a PDF file that has a JPG extension.

This also means you don't have to have the Beta UI Scripting installed.

---
*****
Use MoreInternet Preference Pane to change Internet Helpers without IE

[ Reply to This | # ]

use screencapture instead
Authored by: englabenny on Mar 18, '03 11:49:06AM

to this use, your cli-utility solution is surely better; but it is nice someone shows me this feature I've only heard of before, to be able to script anything in menus. It sure is usable - even though in this case there is an easier solution..



[ Reply to This | # ]
use screencapture instead
Authored by: pcunix on Mar 18, '03 02:28:23PM
I don't see any point in writing Applescript to do nothing but run a shell command.

If you already have terminal windows open, just type the command. If you want to be able to click on it from Finder, then just put it in a file with the extension .command, and chmod 755 it. So this, for example, would be just:

echo "screencapture -i  ~/myScreenShot.pdf" > sreenshot.command
chmod 755 screenshot.command

Why have the overhead of Applescript when you don't need it?

---
--
Tony Lawrence
Free SCO, Mac OS X and Linux Skills Tests: http://aplawrence.com/skillstest.html

[ Reply to This | # ]

use screencapture instead
Authored by: Accura on Mar 18, '03 08:11:55PM

i agree with you about not using apple script to run a shell scrip but people like apple script just because they know how to add frills and stuff.

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]
capture scrollable area?
Authored by: chag on Mar 22, '03 12:48:58PM

is there any way to add the ability to capture the entire scrollable area of
a window? Looking for a replacement for the OS9 app ScreenCatcher.



[ Reply to This | # ]