Re: Scripting Addition w/ Dialog Boxes (OS X)
Re: Scripting Addition w/ Dialog Boxes (OS X)
- Subject: Re: Scripting Addition w/ Dialog Boxes (OS X)
- From: Jon Pugh <email@hidden>
- Date: Mon, 28 Jan 2002 20:42:55 -0800
At 11:39 AM -0700 1/28/02, Zachary Black wrote:
>
I've been converting my OS 8/9 scripting additions to run in X, and have run into a problem: I was previously able to display dialog boxes from within the scripting addition C++ code, but now, when the code is executed in X, nothing happens. Eventually the SA stalls into the rainbow cursor. Any suggestions? I'm not even sure if I'm going about this the right way... I "carbonized" the SA by removing the old libraries from the project, and adding the appropriate ones, including CarbonLib. And I changed the header info in the project preferences to "MacHeadersCarbon.h" Is this correct?
The "display dialog" scripting addition can do it, so it's still possible.
This also presumes that you are telling an application to display the dialog. I've found that the script menu, and perhaps others, run scripts via a ScriptRunner application, which apparently doesn't put up any UI. However, I seem to be able to get it in front of my menus so that they don't respond to mouse clicks until I change applications by clicking on some window or the dock. Then I can reach the menus. I wonder if you might be running in this layer and be unable to get a dialog up until you target some other application.
However, I haven't carbonized my scripting additions yet.
Jon