Re: Printing contents of the active Desktop window
Re: Printing contents of the active Desktop window
- Subject: Re: Printing contents of the active Desktop window
- From: "I. Savant" <email@hidden>
- Date: Wed, 15 Aug 2007 14:48:34 -0400
On 8/15/07, email@hidden <email@hidden> wrote:
> I am attempting to write a program (actually, a service) that will allow the user to print the contents of the currently active Desktop window.
Well first you should explain what you mean by "Desktop window" ...
If you simply want the active window of the active application, you
can do this with AppleScript.
Taking a screenshot, however, is a bit trickier, since I believe
you'll have to use the Accessibility API to ask that window for its
screen coordinates. You can then use those coordinates to determine
what area of the screen you want to capture.
For all three topics (AppleScript, Accessibility, and screen
capture), search this list's archives; there are a number of threads
about them already. See also www.cocoadev.com ...
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden