how to get the result of a process in Applescript
I am running an applescript that runs Xcode, 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, while 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? I am using Xcode4

Thanks
how to get the result of a process in Applescript
===

I am running an applescript that runs Xcode, 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, while 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? I am using Xcode4

Thanks