

If checkstate() is null then togglestate() #we dont really want 3 states so we'll toggle again after a reset Tell application "Finder" to make new file at thisFolder with properties ĭelete file (thisFolder & "CLICKING.txt")ĭelete file (thisFolder & "STOP_CLICKING.txt") #im sure there is a better way, but this certainly works #function to update state of clicking via text files If exists file (thisFolder & "STOP_CLICKING.txt") thenĮlse if exists file (thisFolder & "CLICKING.txt") then # Function to check current state / should we should stop clicking Tell application "Finder" to set thisFolder to container of thisFile as text Here are the two applescript apps we make: Now we just need to create a loop that clicks at the current location of the mouse, and a way to break out of that loop.


I put it and my applescripts inside the same folder (I named the folder superclicks). Once you download and extract MouseTools, it is just a batch script. We are using applescript, a command line tool for OSX called MouseTools, and an application called MagicPref to assign the script to one of our mouse buttons. I couldn't find anything that would allow us to use the mouseup to turn off our clicking loop, so I used a toggle: Click once to start our crazy clicks, and click again to stop it (I used the middle click button as my start and stop) The only thing I cannot see us being able to accomplish is holding the mouse down to do it. Its got a few pieces, it might have taken me forever to come up with, and could probably use some polishing but its pretty darn close to what you wanted.
