Re: Display dialog + compiled scripts
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.