Re: Repeat
Re: Repeat
- Subject: Re: Repeat
- From: Steve Roy <email@hidden>
- Date: Wed, 21 May 2003 12:09:04 -0400
email@hidden (Marcus Rodrigues) wrote:
>
tell application "Safari"
>
activate
>
set theURL to {"http://www.apple.com.br", "http://www.apple.com"}
>
repeat
>
open location (some item of theURL)
>
delay (60 * 60)
>
end repeat
>
end tell
Replace 'open location' by 'set url of document 1', and you should probably make
sure there's at least a document opened before doing so.
Also, if you can save your script as a stay-open application, you should make
use of the 'on idle' handler.
That would give you this:
property theURLs : {"
http://www.apple.com.br", "
http://www.apple.com"}
on idle
tell application "Safari"
activate
if (count of documents) is 0 then
make document at end of documents
end if
set URL of document 1 to (some item of theURLs)
end tell
return 60 * 60
end idle
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Repeat (From: Marcus Rodrigues <email@hidden>) |