Re: Referencing splitter group contents
Re: Referencing splitter group contents
- Subject: Re: Referencing splitter group contents
- From: "koenig.yvan" <email@hidden>
- Date: Mon, 08 Oct 2012 18:27:40 +0200
Le 08/10/2012 à 17:27, Alex Zavatone < email@hidden> a écrit : Mornin'
I'm trying to use GUI scripting to set up an AppleScript to click Xcode's Clear button in the debugger, but it appears that splitter groups are not able to take tells.
The reference to the item is a member of two splitter groups.
button "Clear" of splitter group 1 of group 3 of splitter group 1 of group 2 of splitter group 1 of group 1 of window 1
That doesn't compile in the Script Editor in 10.6.8 and when expanding the line into a bunch of tell blocks, it appears that AS doesn't know what a splitter group is.
Attempt below. Any ideas?
tell application "Xcode" -- click button "Clear" of splitter group 1 of group 3 of splitter group 1 of group 2 of splitter group 1 of group 1 of window 1 tell window 1 tell group 1 tell (splitter group) 1 end tell end tell end tell end tell
I don't have access to 10.6.8 at this time to check but
(1) tell (splitter group) 1
don't compile under 10.8.2. The correct syntax is :
If 10.6.8 don't know the class splitter group, you may try :
tell (first UI element whose role is "AXSplitGroup")
Yvan KOENIG (VALLAURIS, France) lundi 8 octobre 2012 18:24:53
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden