Re: Load several webpages in succession
Re: Load several webpages in succession
- Subject: Re: Load several webpages in succession
- From: deivy petrescu <email@hidden>
- Date: Mon, 14 May 2007 13:30:54 -0400
On May 14, 2007, at 12:57, Timothy Hellum wrote:
Good afternoon,
I have a simple script that allows me to load and refresh a
website. However, ideally, I would have a script that loads
several websites in succession with a wait time of 5 minutes
between sites.
Anyone know how to do this?
The script so far (as collected off the web):
on idle
tell application "Safari"
activate
set URL of front document to "http://www.theglobeandmail.com"
end tell
return 60
end idle
Any help much appreciated.
/timothy
-------------------------------
Timothy Hellum
Editorial IT Support
The Globe and Mail
http://www.theglobeandmail.com
_______________________________________________
Timothy,
the script below cycles over 3 URL's every 10 seconds.
Change it accordingly
<script>
set j to 1
on idle {}
global j
set lista to {"http://www.theglobeandmail.com", "http://
www.nyt.com", "http://www.gazetaesportiva.net"}
tell application "Safari"
activate
set URL of front document to item j of lista
end tell
if j ≤ 2 then
set j to j + 1
else
set j to 1
end if
return 10
end idle
</script>
Deivy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden