AppleScript that visits a website at a certain time of day...

Discussion in 'Mac Programming' started by picturesintheai, Jul 18, 2008.

  1. picturesintheai macrumors newbie

    Joined:
    Jul 18, 2008
    #1
    I am new to programming in Applescript, but really trying to learn more. I have published a program called DISMount on ScriptBuilders.net.

    Anyway.... I'm looking for a way to script that will tell Safari to visit a certain website at a certain time of day... is that possible? If so.... could anyone tell me how, or point me in the right direction?
     
  2. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #2
    Easiest thing to do is put a recurring event into iCal.

    barring that:

    property runtime : date "2:00 pm"

    on idle
    if (current date) >runtime then
    doRun()
    set runtime to runtime + 1*days
    end if
    return 5* minutes
    end idle
     

Share This Page