• 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 Skinner <email@hidden>
  • Date: Thu, 1 Aug 2002 09:32:44 -0400

On Wednesday, July 31, 2002, at 10:49 PM, Paul Berkowitz wrote:

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


I found this to be news. I've always used the verbose (path to frontmost application as text). But I'm not sure that the 'current application' is what it appears to be.
I put these different techniques after a finder Try this.


tell application "Finder"
activate
tell application (path to the frontmost application as text)
display dialog (path to the frontmost application as text)
end tell
end tell
--> Finder displays the dialog.

tell application "Finder"
activate
tell current application
display dialog (path to the frontmost application as text)
end tell
end tell
-->Script editor bounces it's icon displays the dialog when activated.

--And just what did John Delacouer mean when he mysteriously spoke?
--tell me to set dd to (display dialog.....)
--does the same and is more useful

tell me to set dd to (display dialog (path to the frontmost application as text))
tell application "Finder"
activate
dd
end tell
-->Script editor activates and displays the dialog then retreats to the background!


Well, I don't know about more useful. But that is cool! I'm scratching my head over how exactly he's rolled that up...
_______________________________________________
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: {}'s end
  • Next by Date: SOAP and XML-RPC through a proxy
  • Previous by thread: Re: Display dialog + compiled scripts
  • Next by thread: Re: Set Multiple variables to one value
  • Index(es):
    • Date
    • Thread