• 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: Scripting Addition w/ Dialog Boxes (OS X)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Scripting Addition w/ Dialog Boxes (OS X)
      • From: Paul Berkowitz <email@hidden>
References: 
 >Scripting Addition w/ Dialog Boxes (OS X) (From: Zachary Black <email@hidden>)

  • Prev by Date: Re: End of column in Excel
  • Next by Date: Open or what (was Re: Close Access)
  • Previous by thread: Scripting Addition w/ Dialog Boxes (OS X)
  • Next by thread: Re: Scripting Addition w/ Dialog Boxes (OS X)
  • Index(es):
    • Date
    • Thread