• 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: NSAppleScript with threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript with threading


  • Subject: Re: NSAppleScript with threading
  • From: email@hidden
  • Date: Sun, 8 May 2005 16:44:59 -0400 (EDT)
  • Importance: Normal

> Hello,
>
> I read from the NSAppleScript documentation :
> Important:  You should access NSAppleScript only from the main thread.
>
> So how can I execute AppleScript scripts using NSAppleScript keeping
> my GUI responsive to user interactions ??

You're not going to like this, but it isn't possible. About the only thing
I can think of would be to execute the 'osascript' task.

Fortunately, the BSD Subsystem is no longer an optional install in Tiger,
so you can depend on your users having osascript installed if they're
running 10.4 or higher. If your app is compatible with 10.3 or lower,
though, you'll have to check for its existence, and alert the user if it's
not found.

Charles
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSAppleScript with threading
      • From: Daniel Jalkut <email@hidden>
    • Re: NSAppleScript with threading
      • From: Thomas Clement <email@hidden>
References: 
 >NSAppleScript with threading (From: Thomas Clement <email@hidden>)

  • Prev by Date: Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
  • Next by Date: Re: Can't drag/drop create new data model in Interface Builder
  • Previous by thread: NSAppleScript with threading
  • Next by thread: Re: NSAppleScript with threading
  • Index(es):
    • Date
    • Thread