Re: OSAXen for scripting non-ASable apps
Re: OSAXen for scripting non-ASable apps
- Subject: Re: OSAXen for scripting non-ASable apps
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 24 Sep 2001 00:23:08 -0700
On 9/23/01 9:58 PM, "Joseph A. Weaks" <email@hidden> wrote:
>
> Get OneClick.
>
>
>
> Paul Berkowitz
>
>
Actually, Paul, I use KeyQuencer, which more than gets the job done
>
as well. But I'm interested in exploring an AS only method.
>
What of Akua sweets? I can't make heads or tails out of it's
>
dictionary on first read through. Are the freeware osaxen solutions
>
saavy enough to do this kind of work?
Not quite perfectly. See below.
>
>
Could someone give me a script example attempting to do any/all of
>
the following and which Osaxen it relies on?
>
>
-- activates app with creator code 'XXXX'
>
-- clicks a window location
>
-- selects a radio button in the front window
>
-- simulates tab key
>
-- selects 'collate' from the 'edit' menu
>
-- selects 'blue' from pop-up menu 'color' under the 'style' menu
>
-- simulates key combo cmd-i
>
-- copies selection to clipboard
>
-- drags mouse from # # to # #
>
>
Joe Weaks
>
>
Akua Sweets can do most of this, and no other osax can do much of it except
copy selection to the clipboard (Standard, Jon's), tab key or key combo
(Sigma's, Sandi's Additions), activate app (the Finder). Akua can do all
those too, But a few them are Akua's 'click on control' and I could never
get that to work. Although menu selection (Akua's puppet menu) works OK,
only up to one level of submenu, and more than one menu item in a row often
doesn't work right.
>
-- activates app with creator code 'XXXX'
arouse (get path to creator "XXXX") -- both Akua
>
-- clicks a window location
click on control of "Window Name" at {x, y} -- ? Akua
>
-- selects a radio button in the front window
click on control of "Window Name" at {x, y} -- ? Akua
get the bounds of the control first from :
set {a,b,c,d} to bounds of (the controls of window "Window Name") --
Akua
>
-- simulates tab key
Easiest:
type text tab -- Sigma's
>
-- selects 'collate' from the 'edit' menu
puppet menu {"Edit", "Collate"} -- Akua
>
-- selects 'blue' from pop-up menu 'color' under the 'style' menu
probably nothing, maybe
puppet menu {"Style", Color", "Blue"} -- but I don't think so
>
-- simulates key combo cmd-I
Easiest:
type text "i" holding down command -- Sigma's
>
-- copies selection to clipboard
set the clipboard to (get selection) -- in app that has text 'selection'
-- Standard Additions, Jon's
clip -- Akua , better for styled text, non-text, etc.
>
-- drags mouse from # # to # #
don't think so, maybe
MouseClick at {x,y} -- Sandi's Additions
can be maneuvered somehow.
There are probably other osaxen specially designed for this. You can check
at www.osaxen.com. But the macro utilities like OneClick and KeyQuencer do a
better job with all this interface stuff. It's what they were designed for.
--
Paul Berkowitz