• 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: getting a URL from IE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting a URL from IE


  • Subject: Re: getting a URL from IE
  • From: "Christopher C. Stone" <email@hidden>
  • Date: Tue, 17 Apr 2001 23:39:58 -0500

At 04/17/2001 12:08 -0500, Erik Ness wrought:

> it's so easy in iCab. It must be possible in IE, but I can't see it. Can somebody give me a hand?

---------------------------------------------------------------------------
set firstPage to false

tell application "Internet Explorer"
try
set firstPage to item 1 of (ListWindows)
end try
if firstPage is not false then
set myurl to item 1 of (GetWindowInfo firstPage)
end if
end tell
---------------------------------------------------------------------------

ListWindows fails if there are no windows open

GetWindowInfo 1 does not refer to the front window unless you've only used the window that opens when Explorer is launched.
MSIE has no sensible method of referring to the front window for most purposes.


--
Best Regards,

Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden


  • Follow-Ups:
    • Re: getting a URL from IE
      • From: "Christopher C. Stone" <email@hidden>
    • Re: getting a URL from IE
      • From: Timothy Bates <email@hidden>
References: 
 >getting a URL from IE (From: Erik Ness <email@hidden>)

  • Prev by Date: Re: Random number generator without duplicates?
  • Next by Date: Coercing String to Constant
  • Previous by thread: getting a URL from IE
  • Next by thread: Re: getting a URL from IE
  • Index(es):
    • Date
    • Thread