Re: NSAppleScript with threading
Re: NSAppleScript with threading
- Subject: Re: NSAppleScript with threading
- From: Nathan Day <email@hidden>
- Date: Tue, 10 May 2005 14:08:14 +1000
On Tuesday, May 10, 2005, at 01:57PM, Charles Srstka <email@hidden> wrote:
>On May 9, 2005, at 6:31 PM, Nathan Day wrote:
>
>> you can catch all AppleEvents for your application from the
>> AppleScript and forward them into your main thread.
>
>However, simply fork/execing osascript would probably be much easier,
>no?
>
>Charles
>
>
osascript simply fails if it tries to do any gui stuff. You could write your own equivalent though and set the default apple event handler to something other than the current process (the default), you main application for instance, that way any gui stuff like display dialog no wrapped in a 'tell application' would be handled by your main application.
Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
_______________________________________________
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