title: AppleScript to build on multiple iOS devices within Xcode?
body: <p>I'm wanting to automate the build of my iPhone apps across multiple devices (all connected at once) within Xcode, but I can't work out how to use AppleScript to select which device to build on.  </p>
  
  <p>From within Xcode (version 3.2.4) you can select the device to build/debug on by changing the Active Executable (Project>Set Active Executable) to match the name of your device but  creating a new Active Executable in AppleScript (set e to make new executable with properties {name:"app - device", path:"build/Release-iphoneos/app.app"} simply creates a new executable and attempts to launch it on the machine (not the device, not even the simulator). Is there somewhere else I can make the selection of which device to run on? </p>
  
  <p>I'm really sick of having to constantly change the active executable to change between the iPad, retina display and non-retina display, this would allow me to build upon a device of my choosing with a script.  Any help would be greatly appreciated.</p>