• 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: Referencing splitter group contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 :

tell splitter group 1

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

  • Follow-Ups:
    • Re: Referencing splitter group contents
      • From: Alex Zavatone <email@hidden>
References: 
 >Referencing splitter group contents (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Referencing splitter group contents
  • Next by Date: Re: Referencing splitter group contents
  • Previous by thread: Referencing splitter group contents
  • Next by thread: Re: Referencing splitter group contents
  • Index(es):
    • Date
    • Thread