Re: Display dialog + compiled scripts
Re: Display dialog + compiled scripts
- Subject: Re: Display dialog + compiled scripts
- From: Alex Robinson <email@hidden>
- Date: Thu, 1 Aug 2002 11:29:34 +0100
Paul B:
>
tell application "Finder" to display dialog "etc."
>
>
is precisely the way to go here.
....
>
tell current application to display dialog "etc."
>
>
will always work. (In this context 'frontmost application does _not_ work,
>
but 'current application' does.)
But they don't. If run from a DragThing palette, in the first instance you
have to bring the finder to the fore (and in the second DragThing) to get
at the dialog.
Michael T:
>
tell application ((path to frontmost application) as text)
>
display dialog "Hello, world!"
>
end tell
Whereas this works fine with DragThing. Like my suggested snippet but much
much more elegant.
_______________________________________________
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.