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

rock6079

macrumors 6502
Original poster
Jan 6, 2004
428
149
I'm working on an AppleScript/Automator process that will essentially act like a screensaver. I will include it as a login item and want it to execute after X seconds/minutes of inactivity (i.e. no keyboard or mouse movement)

1. If there is no input/activity from user then
2. Launch /Library/.....CustomSaver.app

Step 2 is quite easy but I cannot figure out how to get past step one, lol. any ideas/help? :confused:

Thanks! :)
 
I'm working on an AppleScript/Automator process that will essentially act like a screensaver. I will include it as a login item and want it to execute after X seconds/minutes of inactivity (i.e. no keyboard or mouse movement)

1. If there is no input/activity from user then
2. Launch /Library/.....CustomSaver.app

Step 2 is quite easy but I cannot figure out how to get past step one, lol. any ideas/help? :confused:

Thanks! :)

I can do this with a shell script.

Code:
Command 1 &
sleep x (x = amount of time in seconds)
Command 2

use osascript from a shell script to run applescript
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.