Subject: | |
From: | |
Reply To: | |
Date: | Mon, 13 Nov 2006 10:01:47 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
It appears that the Netscape's AppleScript implementation doesn't
know/care which window is frontmost.
I understand having systems that stay in 9. I have a number like
that myself that I have to keep dragging along.
There might be some way to do it with Javascript but that is outside
of my knowledge base.
Window 1 is the first one created by the way.
On Nov 12, 2006, at 10:57 PM, Marc Bossiere wrote:
> I'm trying to write an Applescript as glue for soem HyperTalk
> scripting. I
> run OS 9 on this computer for specific reasons. I'm trying to find the
> equivelant of
>
> tell application "Internet Explorer"
> (GetWindowInfo -1)
> display dialog item 1 of result
> end tell
>
>
> to work for Netscape/Mozilla. The above script always returns the
> URL of the
> topmost IE window, but the best I can do with Netscape is
>
> tell application "Netscape"
> display dialog URL of front window as string
> end tell
>
> The problem is, it isn't necessarily the front window! Why? If I
> have 5
> windows open it may or may not return the URL of the active window
> (instead
> giving the URL of an open but inactive window. I've studied the
> Dictionary
> for Netscape but I don't fully understand the syntax of Applescript.
>
> Can anyone help? I'm sure it's simple.
>
|
|
|