• 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 + compiled scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display dialog + compiled scripts


  • Subject: Re: Display dialog + compiled scripts
  • From: Michael Terry <email@hidden>
  • Date: Wed, 31 Jul 2002 19:22:46 -0700

On 7/31/02 9:36 AM, "Mr Tea" <email@hidden> wrote:

> Is there an 'approved' way to display dialogs in other apps when using a
> utility like DragThing to run a compiled script? I want the dialog to
> display in front of other windows (obviously), but don't want to bring
> DragThing to the front to display it.
>
> Must the command must always be wrapped in a specific application 'tell'
> block directed at the frontmost application? Or is there a way to have the
> OS display the message so that it always shows, no matter what app is
> frontmost?

You don't have to always target a specific app--tell whichever app happens
to be in front when you run the script.

tell app ((path to frontmost application) as text)
display dialog "Hello, world!"
end tell

> Thanks
>
> Nick

Mike
_______________________________________________
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: 
 >Display dialog + compiled scripts (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Reading a File (Was: Re: TextEdit and Text Item Delimiters)
  • Next by Date: Re: breaking on newline
  • Previous by thread: Re: Display dialog + compiled scripts
  • Next by thread: Display dialog + compiled scripts
  • Index(es):
    • Date
    • Thread