accessing Xcode 4 schemes from AppleScript
accessing Xcode 4 schemes from AppleScript
- Subject: accessing Xcode 4 schemes from AppleScript
- From: Dmitry Markman <email@hidden>
- Date: Sun, 13 Mar 2011 12:38:12 -0400
Hi I'm trying to access schemes from Applescript
here is what I have
1. project "TiffSplit" and I can see 2 schemes via menu Product -> Manage Schemes TiffSplit and TiffSplitStandalone 2. I wrote simple Applescript tell application "Xcode" activate set my_workspace to active workspace document set my_project to item 1 of projects of my_workspace set my_schemes to schemes of my_project end tell
and I'm getting error error "Xcode got an error: AppleEvent handler failed." number -10000
I can see from Xcode4 dictionary that project contains schemes so what's going on?
basically I'm trying to add executable to the project, and Xcode 3 script doesn't work:
set exec_name to "matlab" tell my_project set exec to make new executable with properties {name:exec_name, path:(matlab_path & "/Contents/MacOS/StartMATLAB")} set active executable to exec end tell
above script is working well with Xcode 3.2.6
so I'm trying to set executable via schemes, but it doesn't work either
thanks in advance Dmitry Markman
|
_______________________________________________
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