• 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
Re: XCode and AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: XCode and AppleScript
      • From: Dieter Oberkofler <email@hidden>
References: 
 >XCode and AppleScript (From: Dieter Oberkofler <email@hidden>)

  • Prev by Date: Re: Crash on G3
  • Next by Date: Can't see carbon framework in second framework
  • Previous by thread: XCode and AppleScript
  • Next by thread: Re: XCode and AppleScript
  • Index(es):
    • Date
    • Thread