• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting screendumps ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


References: 
 >Re: Scripting screendumps ... (From: Jacco Rens <email@hidden>)
 >Re: Scripting screendumps ... (From: Chris Stone <email@hidden>)

  • Prev by Date: Re: OSA Menu
  • Next by Date: Re: Akua Sweets "the image from" memory leak?
  • Previous by thread: Re: Scripting screendumps ...
  • Next by thread: ARA 3.0 Setting Call answering
  • Index(es):
    • Date
    • Thread