Re: AppleScripting Xcode
Re: AppleScripting Xcode
- Subject: Re: AppleScripting Xcode
- From: email@hidden
- Date: Mon, 23 Jun 2008 11:59:06 -0700 (PDT)
Thanks for the reply. I had tried getting the Build Transcript before but
it was way too much information. Every call to gcc, ld, etc.
is much more info than I wanted. I was hoping there was an easier way to
get the Build Results (errors and warnings) but I haven't had any luck
getting at this info. I'm guessing people don't script Xcode very much
that something so basic doesn't work.
So, now that I'm guessing I'm not going to get much further with
AppleScript, I used egrep to process the build transcript output and get
something resembling the Build Results window.
Doug Hill
> On Jun 20, 2008, at 2:29 PM, email@hidden wrote:
>
>> I wanted to see if there were any resources available for writing
>> AppleScripts to control and query Xcode. I'm trying to write some
>> scripts
>> to automate the build process for our project and am having difficulty
>> figuring out how to do this, given that the only documentation is the
>> AppleScript dictionary for Xcode. General information is appreciated,
>> although the biggest issue I'm having is getting the build results
>> (Errors
>> and Warnings). I was able to drill down into the Build Output window
>> to
>> get the build result (e.g. Build Failed (x errors, y warnings), but
>> I want
>> the descriptive text of the actual errors and warnings. There is a
>> nice
>> Script property of the Xcode project "build message" but I get an
>> error
>> "Can't make build message of project "MyProject" into type reference."
>>
> Are you trying to get the build transcript? If yes, then you can try
> something like:
>
> tell application "Xcode"
> tell project 1
>
> set buildResult to build active target using active build
> configuration type with transcript
> end tell
>
> get buildResult
> end tell
>
>> Anyways, thanks in advance for any pointers to documentation on Xcode
>> AppleScripting.
>>
>> Doug Hill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden