Is there any way to do this without any programs or scripts? (Maybe through osascript?)
Join them; it only takes a minute:
|
You can automate a mouse click using Applescript.
If you want to click within a browser window you can use Applescript with the help of Javascript
Purely via terminal, you can create a textfile with the name
then compile it as instructed:
and move it to the appropriate system folder for convenience
and now you can run a simple terminal command to manipulate the mouse
note: a more thorough code example has been provided by Jardel Weyrich, here and John Dorian provided a great solution written in Java, here |
|||||||||
|
|
Hey. I had this same question, and I'm not sure if this is what you're looking for, but it will let you move the mouse to a given coordinate on the screen and execute a click. You need intel though, which I don't, so I wasn't able to use it, but I'll give you any help you might need. Link: http://hints.macworld.com/article.php?story=2008051406323031 |
|||
|
|