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: Philip Aker <email@hidden>
- Date: Fri, 11 Apr 2008 14:10:33 -0700
On 08-04-11, at 12:09, Michelle Steiner wrote:
Since all three of my attempts failed, I conclude that application "Xcode" does not implement 'whose' clauses for 'build configuration' objects. Is there any way I could have predicted this?
Try this:
tell application "Xcode" set theProject to project 1 set theTarget to target 1 of theProject tell theTarget set aBC to build configurations whose name is "Release" end tell end tell
I haven't tested it, so I don't know whether it will work.
It works. Depending on his goal:
tell application "Xcode" tell project 1 set cfgs to build configurations of target 1 whose name is "Release" if ((count of cfgs) is 1) then build using item 1 of cfgs end tell end tell
--> "Build succeeded" Philip Aker
|
_______________________________________________
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