Re: Screenshot of Window (using Akua Sweets)
Re: Screenshot of Window (using Akua Sweets)
- Subject: Re: Screenshot of Window (using Akua Sweets)
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 27 Sep 2001 01:01:13 -0700
On 9/27/01 12:15 AM, "Alexander Schrieken" <email@hidden> wrote:
>
On Wed, 26 Sep 2001 23:47:27 -0500, "Bob.Kalbaugh"
>
<email@hidden> wrote:
>
>
> And to answer Alexanders question,
>
>
>
> Like Paul said, some of the properties of input
>
> state in AKUA are read only. ie: {caps
>
> locked:true} but you can still run a script that
>
> will do what you want - IF - you make sure the
>
> caps lock key is on BEFORE you run the script.
>
>
That kind of surprises me since the dictonary
>
doesn't indicate any of the variables used to be
>
read only:
>
>
| Properties:
>
|
>
| kind button down event/button up event/
>
| key down event [r/o]
>
| conglomerate integer [r/o]
>
| pointer location point
>
| modifier keys string
>
| transient keys string
>
| button down boolean
>
| caps locked boolean
>
| raw keys down string [r/o]
>
| window under mouse string [r/o]
>
| window coordinates point [r/o]
>
| window part under mouse small integer [r/o]
I looked again at your original example:
>
Why doesn't this work?
>
>
|tell application "Finder"
>
| input state {keys down:"4", transient
>
| keys:"CS", caps locked:true}
>
|end tell
Maybe it's because you're using 'transient keys' where you should be using
'modifier keys'?
I'm in OS X at the moment so I can't test it.
--
Paul Berkowitz