Re: Getting URL infomation from browser
Re: Getting URL infomation from browser
- Subject: Re: Getting URL infomation from browser
- From: Daniel Blanken <email@hidden>
- Date: Wed, 03 Oct 2001 17:56:27 +0200
>
Anyone any ideas on how to get URL of open window in either Netscape or IE
>
so it can be saved as a string.
For IE try this:
=============
tell application "Internet Explorer"
--get information for frontmost window (i.e. the window with index -1)
set the_info to (GetWindowInfo -1)
--the result is a list in format {[URL of the window],[Title of the
window]}
set the_URL to (item 1 of the_info) as string
end tell
--return the URL of frontmost window as string
return the_URL
==============
The current version of Netscape isn't installed on my machine, so I cannot
give you a solution here, sorry.
Greetings!
Daniel Blanken