Re: XCode and AppleScript
Re: XCode and AppleScript
- Subject: Re: XCode and AppleScript
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 21 Apr 2006 08:35:10 -0700
- Thread-topic: XCode and AppleScript
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:
This email sent to email@hidden