1 Reply Latest reply: Jan 27, 2013 10:37 PM by TeenTitan
brandnew2macbook Level 1 Level 1 (0 points)

Hello,

 

Lets say I want to use ARD (3.6.1) from my macbook air to click on a specific part of the screen on a 10.7.5 mac air. 

 

I have found this osascript but it does not work. Lets say I want it to click at {330,220} in Pages.

 

osascript -e 'tell application "System Events" to tell process "Directory Access" to click at {x,y}'

 

I have tried changing "Directory Access" to the program I am running, "Pages" but that does not work. I am also running command as root.

 

Any suggestions?


ARD, Mac OS X (10.7.5), ARD remote log in failure
  • 1. Re: OSA script help in ARD...mouse click
    TeenTitan Level 4 Level 4 (2,410 points)

    If you google around, you can probable find allot of unix scripts out there to do most of what you can do in Directory Access. (enable root, enable/bind to a directory service, map attributes, extra) and they would be faster and more reliable then trying to perform that action at the finder level with emulate mouse clicks.

     

    FYI Not all process support the to click at funtion of applescript.

     

    Another option some times is to script actions by the GUI elements which isn't relient on the window being in exactly the right spot to work. BUT again it's easier to do allot of this stuff at the unix/command base level.

     

    What are you trying to do with Directory Access?

     

    If you want to use applescript, have you tried some thing you know should work like:

    activate application "AppleScript Editor"

    tell application "System Events" to tell process "AppleScript Editor" to click at {0, 0}