• 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: Display dialog frontmost?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display dialog frontmost?


  • Subject: Re: Display dialog frontmost?
  • From: Steven Angier <email@hidden>
  • Date: Fri, 13 Sep 2002 08:50:15 +1000

On 12/9/02 3:35 AM, "John Delacour" <email@hidden> wrote:

> At 12:07 pm -0400 11/9/02, Jason Bourque wrote:
>
>> tell application (path to frontmost application as string)
>> display dialog "boo"
>> End
>>
>> This avoids having to know what app is frontmost at any given time.
>
> tell me to display dialog "boo"
>
> Has always and still does do the same thing without the verbiage.

Not quite the same thing. "tell me to display dialog..." will display the
dialog over the process running the script (and, incidentally, won't bring
that process to the front).

"tell app (path to frontmost...)" will display the dialog over whatever
process is in front at the time (no need to activate anything). But this
technique also requires that you manage timeouts.


Steven Angier
Macscript.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Display dialog frontmost? (From: John Delacour <email@hidden>)

  • Prev by Date: Re : Scripting Sherlock engine
  • Next by Date: Re: Display dialog frontmost?
  • Previous by thread: Re: Display dialog frontmost?
  • Next by thread: Re: Display dialog frontmost?
  • Index(es):
    • Date
    • Thread