• 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: Wed, 31 Jul 2002 23:38:25 +0100

>tell frontmost application
> display dialog "whatever"
>end tell
>
>That way it should always end up at the front of whatever you're working in...

That doesn't work. Well, not in OSX it doesn't.

"Execution Error
frontmost application does not understand the display dialog message"


the following ugly snippet seems to do the trick:

>>>>>
set theApp to ""
tell application "Finder"
set theApp to name of (every process whose frontmost is true) as text
end tell
tell application theApp
display dialog "whatever"
end tell
<<<<<
_______________________________________________
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.

References: 
 >Display dialog + compiled scripts (From: email@hidden)

  • Prev by Date: Re: TextEdit and Text Item Delimiters
  • Next by Date: Changing desktop picture in Mac OS X?
  • Previous by thread: Re: Display dialog + compiled scripts
  • Next by thread: Re: Display dialog + compiled scripts
  • Index(es):
    • Date
    • Thread