• 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: "William J. Cheeseman" <email@hidden>
  • Date: Mon, 08 Oct 2012 12:48:51 -0400


On Oct 8, 2012, at 11:27 AM, Alex Zavatone <email@hidden> wrote:

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

GUI Scripting terms like 'splitter group' are defined in the System Events terminology dictionary, not in Xcode's dictionary. You sent the 'tell' to Xcode, and it has no idea what a 'splitter group' is.

All GUI Scripting scripts should start like this:

tell application "System Events"
   tell process "Xcode" -- or whatever your target application process is
      .....

The 'tell' to "System Events" gives you the benefit of the System Events dictionary, which among other things happens to know what a 'process' is.

-- 

Bill Cheeseman - email@hidden

 _______________________________________________
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

References: 
 >Referencing splitter group contents (From: Alex Zavatone <email@hidden>)

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