I need a script for AppleScript that allows Safari to load a certain page in different windows every 30 minutes. So far, I've got this:
Code:
open_safari_window("http://www.apple.com")
on open_safari_window(my_url)
tell application "Safari"
repeat with i from 1 to 10
# wake up safari
activate
# make a new window
make new document at end of documents
# set the URL of this new window
tell document i
set URL to my_url
end tell
# sleep 1800 seconds (30 minutes)
delay 1800
end repeat
end tell
end open_safari_window
But it doesn't let me compile it. Can anybody help me out?