• 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: When can you use the 'whose' clause (Filter)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When can you use the 'whose' clause (Filter)


  • Subject: Re: When can you use the 'whose' clause (Filter)
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 11 Apr 2008 14:45:26 -0700

On Apr 11, 2008, at 2:35 PM, Philip Aker wrote:
tell application "Xcode"
tell target 1 of project 1 to set aBC to build configurations whose name is "Release"
end tell

Or to save a further 4 characters:

tell application "Xcode"
set cfgs to build configurations of target 1 of project 1 whose name is "Release"
end tell

The reason I didn't do that is because its ambiguous (at least to me) as to what "whose name" refers to when reading it.

But if we want to save even more characters...

tell application "Xcode" to set cfgs to build configurations of target 1 of project 1 whose name is "Release"

Not that one can do much with that, though. ;)

-- Michelle

-- 
Rock is dead.
Long Live Paper and Scissors!

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: When can you use the 'whose' clause (Filter) (From: "Stockly, Ed" <email@hidden>)
 >Re: When can you use the 'whose' clause (Filter) (From: Jerry Krinock <email@hidden>)
 >Re: When can you use the 'whose' clause (Filter) (From: Michelle Steiner <email@hidden>)
 >Re: When can you use the 'whose' clause (Filter) (From: Philip Aker <email@hidden>)
 >Re: When can you use the 'whose' clause (Filter) (From: Michelle Steiner <email@hidden>)
 >Re: When can you use the 'whose' clause (Filter) (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: When can you use the 'whose' clause (Filter)
  • Next by Date: Re: When can you use the 'whose' clause (Filter)
  • Previous by thread: Re: When can you use the 'whose' clause (Filter)
  • Next by thread: Re: When can you use the 'whose' clause (Filter)
  • Index(es):
    • Date
    • Thread