Re: How can I set the active executable with AppleScript?
Re: How can I set the active executable with AppleScript?
- Subject: Re: How can I set the active executable with AppleScript?
- From: Philip Aker <email@hidden>
- Date: Wed, 13 Feb 2008 04:28:30 -0800
On 2008-02-13, at 01:19:00, Robert Purves wrote:
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?
I haven't tried this myself, but the sdef suggests you would make a
new 'executable' specifying the 'name' and 'startup directory', and
then tell a specified project to set its 'active executable' to the
newly created executable.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
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