Re: Display dialog + compiled scripts
Re: Display dialog + compiled scripts
- Subject: Re: Display dialog + compiled scripts
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 31 Jul 2002 19:49:36 -0700
On 7/31/02 5:54 PM, "Mr Tea" <email@hidden> wrote:
>
This from Paul Berkowitz - dated 31-7-02 06.56 pm:
>
>
> Is the problem that you don't know what the other app will be, necessarily?
>
>
>
>
No, the problem is that I've become fanatical about never putting anything
>
in a Finder 'tell' block unless it's absolutely 100 percent unavoidable.
>
That's right. This is your doing, Paul. :)
I can believe it. But this is the time to be fearless:
tell application "Finder" to display dialog "etc."
is precisely the way to go here.
Or, as others have [almost] said:
tell current application to display dialog "etc."
will always work. (In this context 'frontmost application does _not_ work,
but 'current application' does.)
As it happens, that's precisely how OneClick did it.
--
Paul Berkowitz
_______________________________________________
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.