Re: When can you use the 'whose' clause (Filter)
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