Re: Detect an URL
Re: Detect an URL
- Subject: Re: Detect an URL
- From: Timothy Bates <email@hidden>
- Date: Wed, 14 Mar 2001 00:20:04 +1100
you want something like this
on idle
tell application "Internet Explorer"
set winList to ListWindows
set info to GetWindowInfo (item 1 of winList)
set theURL to item 1 of info
if theURL = "
http://www.google.com/" then
tell me to display dialog "you are in google"
else
tell me to display dialog theURL as string
end if
end tell
end idle
PS: you were using words which have special meanings (like URL, and assuming
that a window 1 existed.
Also, exploders scripting is hopelessly obscure, so you should not feel bad
;-)
tim
On 3/13/01 10:12 PM, "nuria" <email@hidden> wrote:
>
Hi all,
>
>
I4m making an application that tries to control Internet Access to some
>
URL4s. I like to make a script that detect if Explorer is in a URL. For
>
that, I have made next:
>
>
tell application "Internet Explorer"
>
set info to GetWindowInfo 1
>
set URL to item 1 of info
>
if URL = "http://www.google.com/" then display dialog "you are in
>
google"
>
end tell
>
>
I save it as an application that is always open, and I open it and
>
Internet Explorer, but when i go "google" there4s no action.