Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Click a mouse button (for use in AppleScripts, etc.)
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information. Adding simple README.
click.m Initial code.


This code is based on an anonymous contribution at

It was updated by Steven Merrill to compile without deprecation warnings on Mac OS X 10.6.


This program is a slightly updated version of the code at

It will build a "click" binary that can be used inside of AppleScripts (and the like) to click the mouse under Mac OS X.

Building the code

I plan to make a Makefile, but for now, gcc -o click click.m -framework ApplicationServices -framework Foundation.


click -x [x coordinate] -y [y coordinate]

If no value is specified, 0 will be used.

Something went wrong with that request. Please try again.