I’m trying to find a way to simulate a general mouse click using AppleScript. However, most of the click simulation material I’ve come across has involved having it select some speicifc GUI element. For my particular needs, however, I require it to click at the current location of the pointer a given number of times at a certain frequency.
So far I’ve only come across something like this:
tell application “System Events”
repeat 100 times
click
end repeat
end tell
This does not appear to work, and as of now I don’t know a proper wait command. Any help is appreciated.