• 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
accessing Xcode 4 schemes from AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Xcode 4 related questions
  • Next by Date: Re: Xcode 4 -- support of 10.4 / 10.5, PowerPC, ...
  • Previous by thread: Re: Xcode 4 and printing logs in debugger output window
  • Next by thread: LLDB still not yet for iOS?
  • Index(es):
    • Date
    • Thread