Applescript Help

Discussion in 'Mac Programming' started by peridot, Jan 14, 2011.

  1. peridot macrumors member

    Dec 22, 2010
    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!
  2. McGordon macrumors member

    Dec 28, 2010
    Use the delay command?

    delay timeInterval

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

    	delay 120 -- 2 minutes
    	-- click the button
    end repeat
  3. peridot thread starter macrumors member

    Dec 22, 2010
    You are a genius! Thank you very much!

Share This Page