• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript: Xcode's "front" project is not one in front window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Applescript: Xcode's "front" project is not one in front window (From: "Kevin A. Mitchell" <email@hidden>)

  • Prev by Date: Re: Applescript: Xcode's "front" project is not one in front window
  • Next by Date: Re: Attach to Process to debug Framework
  • Previous by thread: Re: Applescript: Xcode's "front" project is not one in front window
  • Next by thread: Run Script build phase and osacompile
  • Index(es):
    • Date
    • Thread