• 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: OSAXen for scripting non-ASable apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSAXen for scripting non-ASable apps


  • Subject: Re: OSAXen for scripting non-ASable apps
  • From: Andy Wylie <email@hidden>
  • Date: Mon, 24 Sep 2001 19:44:17 +1200

on 24/9/01 7:23 PM, Paul Berkowitz at email@hidden wrote:

> 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.
I've found where that doesn't work 'input state', 'pointer location' does
along with 'reposition window' for robustness.

>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.
>
ditto
>> -- 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
>
input state {keys down:" "}--Akua, it's a tab. there's a host of ways of
doing this with Akua, see what 'input state' returns.
>
>> -- 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
>
input state {keys down:"i"}--Akua
>> -- 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
>
input state {pointer location:{220, 85, 220, 46}}--Akua


_____________________________ Andy


References: 
 >Re: OSAXen for scripting non-ASable apps (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: OSAXen for scripting non-ASable apps
  • Next by Date: Re: What I really want to say is:
  • Previous by thread: Re: OSAXen for scripting non-ASable apps
  • Next by thread: problem with scripts in OS X
  • Index(es):
    • Date
    • Thread