Re: UI scripting, windows order
Re: UI scripting, windows order
- Subject: Re: UI scripting, windows order
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 21 Jan 2003 09:56:35 -0500
on 03-01-21 7:27 AM, nino at email@hidden wrote:
>
I don't think the weird window naming is a TextEdit bug, the same thing
>
happens with Safari, so probably it is a Cocoa standard and we have to get
>
used to extract document name from window names using TIDs.
>
As for the character it is a legal one for applescript but transformed by
>
the mail system, kind of long "-".
I guess the long file name (which doesn't match what you see on screen) is
not just a TextEdit, but a Cocoa bug. I'm sure it will be fixed before long.
The long "-" would be an em-dash (Shift-Option-hyphen).
>
But the point that I would like to rise is the fact that there is, as far as
>
I understand, no way in the GUI scripting to address the front window in a
>
reliable way. This has always been done addressing the "window 1" object.
I expect this will be fixed, too, because using the index to indicate
front-to-back ordering is conventional AppleScript practice.
Apple's accessibility technology would allow GUI Scripting to include other
ways to get the front window. For example, by getting the application's
"main window" UI element or looping through the windows and getting the
"main" attribute of each. But these don't seem to be implemented in GUI
Scripting at this time.
It's an interesting question, whether GUI Scripting should parrot all of the
existing accessibility elements and attributes, or instead confine itself to
the traditional Standard Suite. I'm inclined to think it should make all of
accessibility available -- I see no reason, off hand, to remain stuck at a
point in the past just because that's all they chose to implement back in
1992 or 1993.
It would be especially interesting to see accessibility notifications
implemented in AppleScript. Imagine what you could do with AppleScript if,
say, an 'on window closed' or 'on window changed' event for every running
application could be monitored.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.