Good afternoon,
A few years ago (2,3?) I worked through a script with the kind assistance of some on this list to have Safari cycle through 3 websites at one minute intervals. I have a large LCD display in the office that is attached to an old G4 tower running 10.5.8. All it has to do is cycle these web pages and nothing else. I'd need to quit the script and Safari every few days because Safari would bork up with memory leaks (I was told) over time and grind to a halt. I ran a cron to quit the script (saved as an app) and Safari and restart the script thereafter.
I believe the script was originally written under Tiger, but it may very well date from Panther...
So what happens now, is that the script cycles through my now 17 websites and then just halts at the end of the script, and does not loop back to start again. I presume the issue lies in Applescript syntax changes between Panther and Leopard. Here is the script:
set j to 1
on idle global j set lista to {" http://www.theglobeandmail.com", " http://www.reportonbusiness.com/", " http://www.globesports.com/", " http://globeinvestor.com/", " http://www.cbc.ca/", " http://news.google.ca/", " http://globeinvestor.com/", " http://www.nationalpost.com/", " http://www.thestar.com/", " http://www.nytimes.com/", " http://www.bbc.co.uk/", " http://www.washingtonpost.com/", " http://www.huffingtonpost.com/", " http://www.politico.com/", " http://gawker.com/", " http://www.drudgereport.com/", " http://www.bourque.com/"} 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 60 end idle
Is the "set j to 1" at the end of the script the culprit?
FWIW: I have looked at MixTabPlus for Firefox to do something similar, but while that extension works well to cycles Tabs, it does not reload the content in the Tabs at the extension hits them. The viewer in our environment could therefore be looking at 8 hour old content and not know it.
Many thanks for any insight.
/timothy
-- Timothy Hellum | Editorial Support | (416) 585-5168 The Globe and Mail – Canada’s National Newspaper
|