Re: Scripting screendumps ...
Re: Scripting screendumps ...
- Subject: Re: Scripting screendumps ...
- From: "Christopher C. Stone" <email@hidden>
- Date: Wed, 22 Nov 2000 18:51:13 -0600
At 15:17 -0800 11/22/00, Chris Stone wrote:
>
I think Akua Sweet's "capture region" command will do what you want...
>
>
Hehe... two Chris Stone's on the same thread.. :-)
___________________________________________________________________________
Hmm. ;)
Use Akua Sweets to capture the image and store the result.
set f to (path to desktop as string) & "TESTPic.pic"
tell application "Tex-Edit"
activate
capture picture from {window peek:-1}
store image result in f
open f
end tell
peek:-1 causes the window border to be captured.
peek:0 will leave the border off.
Run from a script editor this must be wrapped in a tell block (if the app is different from the editor).
No block is needed if running from OSA Menu or OneClick.
You'll have to serialize the filenames in your script, but that's not too hard.
http://hyperarchive.lcs.mit.edu/HyperArchive/Archive/dev/osa/akua-sweets.hqx
Best Regards,
Chris
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Christopher C. Stone
StoneWorks Computer Consulting
email@hidden
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~