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

matonuser

macrumors newbie
Original poster
May 29, 2007
9
0
Ahoi

I'm in a spot of trouble regarding an issue with applescript

I am looking to write a script that will open a program, let it run for an hour, then close it, and re-open it after say, ten seconds. I want this to happen continuously until i tell it to stop, except i have no idea of how to go about this, or even if applescript is what i want to use to do it.?

Any help from anyone is very much appreciated, thankyou :)
 

eatbacon

macrumors regular
Feb 4, 2003
104
0
This might do trick. Without more information it is hard to say if there is a more appropriate solution.

Code:
repeat
	tell application "Address Book" to activate
	delay 3600
	tell application "Address Book" to quit
	delay 10
end repeat
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.