• 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 Internet Explorer 5.2 window name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Internet Explorer 5.2 window name


  • Subject: Re: Getting Internet Explorer 5.2 window name
  • From: Kai Edwards <email@hidden>
  • Date: Sat, 14 Dec 2002 04:54:23 +0000

on Fri, 13 Dec 2002 14:35:28 -0800, "Domains4Days.com"
<email@hidden> wrote:

> My goal: I would like to be able to copy to the clipboard: The URL and the
> window name of the top most window on Internet explorer 5.2x . Currently, I
> am able to copy only The URL - and I am unable to grab the window
> Name/Title.
>
> IE 5.2x - this will NOT return the window Name/Title - any suggestions?
>
> tell application "Internet Explorer"
> set theWind to item 1 of (ListWindows)
> set theURL to item 1 of (GetWindowInfo theWind)
> set the clipboard to theURL & return & theWind
> end tell
>
> The result is:
>
> http://www.somesite.com
> 2 (... It gives me a number - but I would like it to give me the title:
> something like " welcome to some site")

This works for me (IE 5.1 / OS 9.1 / AS 1.8.3):

======================================================

tell application "Internet Explorer" to set [NO BREAK]
{theURL, theName} to (GetWindowInfo of (ListWindows)'s item 1)
set the clipboard to theURL & return & theName

======================================================

...but I can't say if it'll work with your setup.

--
Kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Getting Internet Explorer 5.2 window name
  • Next by Date: Newbie / PowerBook at work (LAN) & home (AirPort)
  • Previous by thread: Re: Getting Internet Explorer 5.2 window name
  • Next by thread: Re: Getting Internet Explorer 5.2 window name
  • Index(es):
    • Date
    • Thread