Re: Load several webpages in succession
Re: Load several webpages in succession
- Subject: Re: Load several webpages in succession
- From: Timothy Hellum <email@hidden>
- Date: Tue, 15 May 2007 10:58:58 -0400
- Thread-topic: Load several webpages in succession
Title: Re: Load several webpages in succession
Well. All was well and the script functioning perfectly. I then had to move the box (an old quicksilver doing nothing but running the script and Safari). One of the two USB ports on the rear was borked unbeknownst to me and Safari kicked up a fuss and now won’t load any pages and the GUI is doing some weird things with doubled buttons and such. Firefox runs perfectly well, however, and perhaps I should have begun this endeavour with that apop in the First place.
The following script fails on run because I suspect some code is specific to Safari’s dictionary. Can it be adapted to Firefox?
FWIW, I replaced Safari with a known-good version, tossed out all prefs and its receipt, ran SWUP, repaired perms and even ran Applejack as a last-ditch. No luck.
What code should be changed?
This is the A/S alert:
Can’t set <<class URL>> of document 1 of application “Firefox” to “http://www.theglobeandmail.com.”
This 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/"}
tell application "Firefox"
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
NOTE: there is a greater or equal to character on this line: if j ≤ 2 then
Any help appreciated.
/timothy
On 14/5/07 14:17, entity "deivy petrescu" <email@hidden> expostulated:
On May 14, 2007, at 13:58, Bruce Carter wrote:
> Timothy,
>
> You guys may have a text format issue going, or it may have just
> been a typo, but your script has (verbally, to avoid the same
> possible format issue) "if j equals 2 then", while Deivy's has "if
> j is less than or equal to 2 then". The logic in your copy is
> wrong, since if you set j to 1 and then only increment it if it
> equals 2, it will never get incremented, will always get reset to
> 1, hence always showing the first page.
>
> On May 14, 2007, at 1:52 PM, Timothy Hellum wrote:
>
Nice catch, Bruce.
I was looking at my script and not what was sent to me.
less or equal is option-<, which might have been mangled by the mailer.
Sorry about that Timothy, it was my fault, I've been a member for a
while and should know not to use certain characters.
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
-------------------------------
Timothy Hellum
Editorial IT Support
The Globe and Mail
http://www.theglobeandmail.com
_______________________________________________
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