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

  • Follow-Ups:
    • Re: Display dialog + compiled scripts
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Re: Display dialog + compiled scripts
  • Next by Date: can any one help?
  • Previous by thread: Re: Display dialog + compiled scripts
  • Next by thread: Re: Display dialog + compiled scripts
  • Index(es):
    • Date
    • Thread