Re: XCode and AppleScript
Re: XCode and AppleScript
- Subject: Re: XCode and AppleScript
- From: Dieter Oberkofler <email@hidden>
- Date: Tue, 25 Apr 2006 17:27:41 +0200
I have now been able to get around the problem with the timeout but
still cannot find any good documentation on how to use the
AppleScript interface of XCode.
Could someone point to to some good resources or share a script that
simply build a specific "Target" and "Build Configuration" in a given
XCode project?
Thank you in advance,
Dieter
On Apr 21, 2006, at 5:35 PM, Paul Berkowitz wrote:
On 4/21/06 4:46 AM, "Dieter Oberkofler" <email@hidden> wrote:
I am especially having a hard time to understand why AppleScript
complains about some timeout errors during a longer build and would
hope that someone might have some samples to share or could point me
to some documentation in this area.
All AppleScript commands have a default timeout of 1 minute (60
seconds).
Any external script (like a self-standing applet, not run from the
Xcode
script menu) targeting an application in a 'tell' block can alter the
timeout interval to anything you want:
tell application "Xcode"
with timeout of 300 seconds
-- your build command here
end timeout
end tell
If you don't care _how_ long it takes, make it very, very long,
like 100000
seconds. But you won't know if it's hanging then.
It doesn't work if the script being run by the targeted application.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40qualiant.at
This email sent to email@hidden
_______________________________________________
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