Help with applescript (no idea)

Discussion in 'Mac Programming' started by matonuser, May 29, 2007.

  1. matonuser macrumors newbie

    Joined:
    May 29, 2007
    #1
    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 :)
     
  2. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
  3. eatbacon macrumors regular

    Joined:
    Feb 4, 2003
    #3
    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
     

Share This Page