Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I use automator to launch a keystroke (cmd+R) when program PremierePro CS6 is idle for 1 minute. This keystroke would start program to Render videofiles. Many Thanks, Jan.

share|improve this question
You might get better answers if you don't restrict the solution space to Automator. – patrix Oct 7 '12 at 15:55

I don't know how well it would work, but you could try running something like this in AppleScript Editor.

    tell application "System Events" to tell process "Safari"
        set p to properties of UI elements of UI elements
        delay 10
        if properties of UI elements of UI elements is p then
            set frontmost to true
            keystroke "r" using command down
            delay 20
        end if
    end tell
end repeat
share|improve this answer
Hey, many thanks, it works almost perfect. Now it puts the process upfront after a delay of 10 seconds, can this be changed in : after "inactivity" of 10 seconds ? – Jan Bauters Sep 24 '12 at 9:43
or after 1minute of "keyboard inactivity" ? – Jan Bauters Sep 24 '12 at 9:52
I don't know any way to really see if an application hasn't been used. properties of UI elements of UI elements just checks if properties like the positions of windows have been changed. – user495470 Sep 24 '12 at 10:05
no problem, many thans, anyway. – Jan Bauters Sep 24 '12 at 12:16
one last question, I tried to add a "keystroke" cmd+h to hide the program after it did cmd+r. but it seems only to do cmd+h.any idea what i did wrong ? – Jan Bauters Sep 24 '12 at 12:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.