Re: Applescript: Xcode's "front" project is not one in front window
Re: Applescript: Xcode's "front" project is not one in front window
- Subject: Re: Applescript: Xcode's "front" project is not one in front window
- From: Jerry Krinock <email@hidden>
- Date: Fri, 22 Sep 2006 20:04:32 -0700
- Thread-topic: Applescript: Xcode's "front" project is not one in front window
on 06/09/22 18:09, Kevin A. Mitchell at email@hidden wrote:
> Jerry Krinock said the following on 9/22/06 1:05 PM:
>> Runing this AppleScript:
>>
>> tell application "Xcode" to return name of front project
>>
>> Expected Result: Name of project which is shown in frontmost window.
>> Actual Result: Project which has index 1 in the "projects" collection, not
>> necessarily the one shown in the frontmost window.
>>
>> Does anyone know how to get the expected result? I've tried a bunch of
>> stuff involving the "front window" but always get syntax errors.
>>
>>
> Have you tried
>
> tell application "Xcode" to return name of active project document
Thank you, Kevin. That works. A little wordy, but the active project may
be referenced as "project of active project document. For example, to build
all targets of the active project document:
tell project of active project document to build targets
Much better!
_______________________________________________
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