title: Running a simulator build using apple script
body: <p>I want to write an AppleScript to launch my project on simulator at some scheduled time. I am using the following apple script but it do not run the project on my simulator. It quits the simulator, launch the XCODE but do not run the project on simulator though the target is correctly set to simulator. What should I do?</p>
  
  <pre><code>application "iPhone Simulator" quit
  tell application "Xcode"
      open "Users:abhinav:myProject:Code:client:src:test.xcodeproj"
      tell project "test"
          clean
          build
          run
      end tell
  end tell
  application "iPhone Simulator" activate
  </code></pre>