• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detect an URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Detect an URL
      • From: Paul Berkowitz <email@hidden>
References: 
 >Detect an URL (From: nuria <email@hidden>)

  • Prev by Date: Info from System Profiles
  • Next by Date: Re: Getting body of an incoming Claris Emailer message
  • Previous by thread: Detect an URL
  • Next by thread: Re: Detect an URL
  • Index(es):
    • Date
    • Thread