Using LiveCode & AppleScript to make mouse selection in another Mac application

Tom Glod tom at
Thu Sep 5 15:59:32 EDT 2019

I dunno if this works.... but you can try

do myscript as "Applescript"

abd your myscript can be

tell application "System Events"
  click at {123,456}end tell

I'm currently working on debugging a tool that uses applescript to
send keystrokes..and i'm finding it inconsistent ...but it could just
be me, so for now I won't say that its the applescript functionality.

On Thu, Sep 5, 2019 at 2:38 PM Ben Rubinstein via use-livecode <
use-livecode at> wrote:

> As the title says...
> I had a recollection that it was possible to construct a tool in LiveCode
> that
> would use AppleScript, System Events, and the accessibility framework to
> perform actions on another (not naturally scriptable) app.
> I can do menu items, I can do keystrokes - but can I move the mouse? Or
> more
> to the point, can I move the mouse to a location, then click and drag to a
> new
> location?
> Automator appears to be able to do this as a recording, which works once
> as a
> single step - but ever since hangs on playback (amusingly, it moves the
> mouse
> to the first point and then refuses to let it be moved anywhere else -
> pulling
> it back if it is - the only escape seems to be to use the keyboard to open
> a
> terminal and kill Automator).
> Did I dream this, or is it possible?
> TIA,
> Ben
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the use-livecode mailing list