• 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
How can I set the active executable with AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I set the active executable with AppleScript?


  • Subject: How can I set the active executable with AppleScript?
  • From: Robert Purves <email@hidden>
  • Date: Wed, 13 Feb 2008 22:19:00 +1300


I am using the technique described here
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/06_02_db_set_up_debug/chapter_42_section_6.html >
to debug numerous arbitrary applications in Xcode.


The technique works well, but it is laborious to set the active executable manually.
This attempt to automate the setup with AppleScript


 tell application "Xcode"
	open "/path/to/DebugDummy.xcodeproj"
	set active executable to "/path/to/MyTest.app"
	debug
 end tell

gives: Xcode got an error: Can’t set active executable to "/path/to/ MyTest.app".
[In the real script, /path/to/MyTest.app is of course replaced by a genuine path].


How can I set the active executable with AppleScript?

Robert P.

_______________________________________________
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


  • Follow-Ups:
    • Re: How can I set the active executable with AppleScript?
      • From: email@hidden (Stefan Haller)
    • Re: How can I set the active executable with AppleScript?
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Setting project and build defaults
  • Next by Date: Re: How can I set the active executable with AppleScript?
  • Previous by thread: Re: Setting project and build defaults
  • Next by thread: Re: How can I set the active executable with AppleScript?
  • Index(es):
    • Date
    • Thread