Re: Screenshot of Window (using Akua Sweets)
Re: Screenshot of Window (using Akua Sweets)
- Subject: Re: Screenshot of Window (using Akua Sweets)
- From: Godot <email@hidden>
- Date: Fri, 28 Sep 2001 11:52:25 -0400
(reply to mail from 9/27/01 16:54)
>
Greg, from Akua, provided an alternative method, but I'm having trouble with
>
it so far. Maybe he can confirm my suspicions about modifier key "A"
tell application "Finder"
activate
capture picture from {window peek:-1}
end tell
set myPic to the result
activate
-- clip myPic -- To test
store image myPic in (verify path to "desk" as string) & "My Pic"
I just ran this on MacOS 9.21 - worked fine - as long as a window in the
Finder was active, somewhat obviously.
When the desktop was active, I got an empty picture.
As far as "input state" - almost all parameters are r/w - I may have biffed
that in some update to the dictionary.
I, unfortunately do not know how to turn the caps lock state on. If someone
will enlighten me, I'll build it in.
I do post the key events with the requested modifier (including alphaLock),
but the "physical" state of the caps lock remains unchanged. I don't know
how to make it stay on. I suppose I could capture FKEY-calling keys and run
them myself in the next release.
- Greg