• 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: 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.

  • Prev by Date: Re: breaking on newline
  • Next by Date: sh osascript & "no user interaction allowed"
  • Previous by thread: Re: Display dialog + compiled scripts
  • Next by thread: Re: Display dialog + compiled scripts
  • Index(es):
    • Date
    • Thread