groups

name language licence
Cleanup @ Entries - Address Book AppleScript Other
Detect Name Switch - Address Book AppleScript Other
ShellCommand AppleScript Other
theme_open AppleScript Other
Google_Search AppleScript Other
RapidWeaver_Addons_version AppleScript Other
check_safari_page_loaded_handler AppleScript Other
On-Off_AppToggle AppleScript Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 >



language: AppleScript
licence: Other

check_safari_page_loaded_handler

options: view full snippetsend to code collector
-- check_Safari_page_loaded handler

on check_Safari_page_loaded(wait_secs)
	set loaded to false
	set cnt to 0
	repeat until loaded
		set cnt to cnt + 1
		delay 0.5
		tell application "System Events" to ¬
			tell process "Safari"
				set x to (value of static text 1 of window 1 as text)
				set y to ""
				if exists group 1 of window 1 then
					if exists (static text 1 of group 1 of window 1) then set y to (value of static text 1 of group 1 of window 1 as text)
				end if
	
(Continues...)