I am running an Applescript that runs Xcode 4, but the script ends no matter what, either if the build is successful or if it fails.
Is there any way that I can wait for Xcode to finish to build and get the result? In case of a success I can just end the Applescript with a success message, but if it fails I would like to get the logs that are printed in Xcode (where I get all the errors and details) and pass them to the script so they can be saved on a file.
Can someone point me to the right procedure to do this?