Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

peridot

macrumors member
Original poster
Dec 22, 2010
42
0
Hi, I'm hoping someone can help me out. I'm at my wit's end!

I'm trying to write an applescript for use in voiceover that will click the mouse every 2 minutes. I have the mouse-clicking part, but I just can't figure out how to make it do it again every 2 minutes. I'm sure it's something simple I'm missing... but I don't know what.

Thanks in advance!
 
Use the delay command?

delay timeInterval

where timeInterval is in seconds and can include a fractional part.

Code:
repeat
	delay 120 -- 2 minutes
	-- click the button
end repeat
 
Use the delay command?

delay timeInterval

where timeInterval is in seconds and can include a fractional part.

Code:
repeat
	delay 120 -- 2 minutes
	-- click the button
end repeat

You are a genius! Thank you very much!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.