Jump to content

Try Automator. It should do such a simple task justice.

 

If not...

 

I found this here, you can modify it to your liking and try it out.

 

activate application "Firefox"
repeat 100 times
    tell application "System Events" to keystroke "a" using command down
    delay (random number from 0.5 to 5)
end repeat

 

 

Link to comment
https://linustechtips.com/topic/729141-apple-script-key-stroke/#findComment-9274871
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×