MACSCRPT Archives

July 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Philip Aker <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 11 Jul 2006 05:50:35 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
On 2006-07-10, at 20:27:39, Joe Barwell wrote:

> it would appear I will have to UI-script the whole process from  
> start to finish. Where I'm currently stuck is with selecting  
> buttons on the dialog windows (i.e. working with the default  
> "Untitled.tab" export file):

Hi Joe,

If the app is totally Carbonized, you should be able to get at the  
widgets by discovering the hierarchy. For example:

tell window "x"
	every ui element
end

Whenever you see a container object (like "group" or "view") then  
repeat the process.

tell window "x"
	tell group 1 of scrollview 1
		every ui element
	end
end

When you locate the object in question you can address it directly:

	click button 1 of group 1 of scrollview 1 of window "x"

Some menus and popups can be tricky—you have to click them before you  
can discover their contents.

There is a helper: /Developer/Applications/Utilities/Accessibility  
Tools/Accessibility Inspector.app


Philip Aker
[log in to unmask]

ATOM RSS1 RSS2