Skip navigation

Problem to select a radio button from Xcode - Organizer

667 Views 7 Replies Latest reply: Nov 13, 2012 6:43 PM by Pierre L. RSS
excellentsyt Calculating status...
Currently Being Moderated
Nov 11, 2012 4:48 PM

Hi Everyone,

 

I have a question that I cannot choose a radio button from Xcode - Organizer via AppleScript.

 

In Xcode - Organizer - Archives, there are three radio buttons:

 

* "Submit to the Mac App Store"
* "Export Developer ID - signed Application"

* "Export as"

 

I have successfully automated the script to get in this section but desperate of getting one of these radio buttons selected.

I have tried things like:

 

tell application "System Events"

     tell process "Xcode"

          click radio button 1 of radio group 1 of window 1

     end tell

end tell

 

but got errors:

System Events got an error: Can’t get radio group 1 of window 1 of process "Xcode". Invalid index.

 

any advice is much appreciated!!

 

Regards

Daniel

OS X Mountain Lion (10.8.1)
  • Pierre L. Level 4 Level 4 (3,860 points)

    Hi Daniel,

     

    I've never worked with Xcode. However, your question is similar to the one asked and solved in this thread.

  • Pierre L. Level 4 Level 4 (3,860 points)

    So I finally was able to get to the "Organizer - Archives" window. Then, using the Accessibility Inspector, the rest was rather easy. The following script should do what you are asking for:

     

    tell application "Xcode" to activate

    tell application "System Events"

        tell process "Xcode"

            tell window "Organizer - Archives"

                tell sheet 1

                    click radio button "Submit to the Mac App Store"

                end tell

            end tell

        end tell

    end tell

     

    Tested under OS X 10.8.2 with version 4.5.2 (4G2008a) of Xcode.

     

    (I use the Accessibility Inspector from UIElementInspector 1.4.)

     

    Message was edited by: Pierre L.

  • Pierre L. Level 4 Level 4 (3,860 points)

    Instead of downloading UIElementInspector 1.4, as I suggested in my previous post, you could also use the Accessibility Inspector available in Xcode: Xcode menu > Open Developer Tool > Accessibility Inspector.

     

    Here's how it works:

     

    Capture d’écran 2012-11-13 à 20.05.45.png

     

    Maybe you might also have a look at this Mac Developer Library web page.

     

    Message was edited by: Pierre L.

  • Pierre L. Level 4 Level 4 (3,860 points)

    My pleasure, Daniel. Many thanks for your feedback.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.