Question: This code works to click on a specific location on the screen but how do you click at the cursor's coordinates?

```
tell application "System Events"
    click at {10, 10}
end tell

```

Answer: 
below an example with python in applescript , python is living in your system naturaly,no installation to be planned.

```
set x to 30

set y to 5

set l to 50 -- click same location 50 times

do shell script "

/usr/bin/python <<END

import sys

import time

from Quartz.CoreGraphics import *

def mouseEvent(type, posx, posy):

          theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)

          CGEventPost(kCGHIDEventTap, theEvent)

def mousemove(posx,posy):

          mouseEvent(kCGEventMouseMoved, posx,posy);

def mouseclick(posx,posy):

          mouseEvent(kCGEventLeftMouseDown, posx,posy);

          mouseEvent(kCGEventLeftMouseUp, posx,posy);

ourEvent = CGEventCreate(None);

currentpos=CGEventGetLocation(ourEvent);             # Save current mouse position

for x in range(0, " & l & "):

          mouseclick(" & x & "," & y & ");

mousemove(int(currentpos.x),int(currentpos.y));      # Restore mouse position

END"

```
You should definitely grab the AppleScript toolbox. It has scripting commands to get your mouse location and mouse clicking. [AppleScript Toolbox is a scripting addition/AppleScript-plugin (a.k.a. “OSAX”) providing commands not available in regular AppleScript](https://astoolbox.wordpress.com).