Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

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

repeat
    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
            --return
            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. –  ؘؘؘؘ 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

 
discard

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.