title: How to record mouse clicks on mac to be replayed by an apple script?
body: <p>I am writing a script to automate repeatedly registering new users for a website (not boosting metrics, not what you think!). I can boil down the process of registering to a series of mouse clicks and typing. I know there are some macro recorders that will let me record how I use the GUI and repeat it, but I need to type something a little different every time - however the mouse clicks are always the same.</p>
  
  <p>Imagining script to look kindof like:</p>
  
  <pre><code>username = "something"  
  for i in range(0,100):  
       playback recorded series of mouse clicks A  
       type username + str(i)  
       type some other stuff  
       playback recorded series of mouse clicks B  
  </code></pre>
  
  <p>But I can't find a good tool to record a series of mouse clicks so that I can play them back from either an applescript or a python script. </p>
  
  <p>I found a useful script (<a href="http://www.bluem.net/en/mac/cliclick/" rel="nofollow">http://www.bluem.net/en/mac/cliclick/</a>) I can call that takes in 2 coordinates and clicks. So even if I could find a tool to record the coordinates of mouseclicks that would work!</p>