firefox internet address

hi!

I am here again begging for help :-D!

My problem is that I would like to speed up a script. What it does is to go to a specific url (in firefox, not safari !) and before to proceed, the page has to load. My trouble is that the page needs quite some time to load ! Sometimes 5 sec, sometimes 30 sec… It is a huge page and this is normal. Right now, I tell the script to wait a delay of 1min. However, to earn some time, I was wondering whether there would be a way to tell firefox that when the page is loaded, the script can go on.

A little help is that the page is forwarded meaning that first you go to http://www.site1.com and then http://www.site2.com, the transition from site1 to site2 being the long step. Hence, if there was a way to tell firefox that when in the address bar, the address is http://www.site2.com, the script can go on, I would be saved from boredom waiting for nothing !!!

Can anyone help me ?

thanks a lot in advance !!!

Hi Patimages,

may this is what you are looking for…


tell application "Safari" to open location "http://bbs.applescript.net/"

repeat
	tell application "Safari" to set check to get source of front document
	if check is " " then
	else if check is not " " then
		exit repeat
	end if
	
end repeat
display dialog "page loaded"


When the Site is loaded then the loop will be exited - you can even forward the site when its loaded…


tell application "Safari" to open location "http://bbs.applescript.net/"

repeat
	tell application "Safari" to set check to get source of front document
	if check is " " then
	else if check is not " " then
		tell application "Safari" to open location "http://www.hochzeitsplaner.at"
              exit repeat
	end if	
end repeat
display dialog "page loaded"


I am sorry - I am not using Firefx - but maybe this is also useful…

Best Regards,

Stefan