• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 28 Jan 2002 21:05:18 -0800

On 1/28/02 8:42 PM, "Jon Pugh" <email@hidden> wrote:

> 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.

When a script is run from the ScriptMenu, the front application is actually
application "SystemUIServer", which appears to be running the script. when i
put in a script running from ScriptMenu 'tell me to quit', it was
"SystemUIServer" that quit, along with its various menu items.
"SystemUIServer" also displays the menu clock and the other doodads in the
upper right corner.

I posted a script here a week or two ago which will tell you what the "real"
front app is (the app before you selected the ScriptMenu), although no one
was in the least interested at the time.

--
Paul Berkowitz


  • Follow-Ups:
    • Scripting Additions: Embracing the Horror of Unix
      • From: Jon Pugh <email@hidden>
    • Re: Scripting Addition w/ Dialog Boxes (OS X)
      • From: Jon Pugh <email@hidden>
References: 
 >Re: Scripting Addition w/ Dialog Boxes (OS X) (From: Jon Pugh <email@hidden>)

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