• 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
Xcode iOS Profiles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode iOS Profiles


  • Subject: Xcode iOS Profiles
  • From: John Day <email@hidden>
  • Date: Tue, 15 Jul 2014 21:04:36 -0400

I wrote the script below to get a list of the available ios profiles to run the simulator on. Does anyone have any thoughts of how to get the list without resorting to the ui?

A command line tool that does the trick would work too. xcodebuild -list will list targets, but not the available ios profiles.


set projectTargetName to "PeoplePicker"

activate application "Xcode"
tell application "System Events" to tell process "Xcode" to set popUpButton to pop up button 1 of list 1 of group 2 of toolbar 1 of window projectTargetName

ignoring application responses
   tell application "System Events" to tell process "Xcode" to perform action "AXShowMenu" of popUpButton
end ignoring

activate application "Xcode"
tell application "System Events" to tell process "Xcode"
   set targetMenuItem to first menu item of menu 1 of popUpButton whose title = projectTargetName
   set targetSchemes to title of (menu items of menu 1 of targetMenuItem whose title ≠ "")
end tell

 _______________________________________________
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

  • Prev by Date: RE: returning
  • Next by Date: Re: Eject Bootable Clone
  • Previous by thread: Automator via Applescript?
  • Next by thread: Setting Password on PDFs
  • Index(es):
    • Date
    • Thread