• 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: Best way to orderly display dialogs etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to orderly display dialogs etc.


  • Subject: Re: Best way to orderly display dialogs etc.
  • From: Takaaki Naganoya <email@hidden>
  • Date: Tue, 31 Oct 2017 21:52:43 +0900

Do you mean “universal application (icon)” display dialog?

<AppleScript>
delay 5 --Select (activate) an app as you like within 5 seconds

tell application "System Events"
        set curIDs to bundle identifier of every process whose frontmost is true
        set curAppNames to displayed name of every process whose frontmost is
true
end tell

tell application id (first item of curIDs)
        display dialog "TEST" with icon 1 with title "Message From " & (first
item of curAppNames)
end tell
</AppleScript>


--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/


> 2017/10/31 19:47、Jean-Christophe Helary
> <email@hidden>のメール:
>
> I'm finding that depending on the tell block in which it is launched, a
> "display dialog" will request the user to turn to that app to be reacted too.
>
> What is the best way to have "application neutral" dialogs that don't require
> moving back to the tell application ?
>
> I think Yvan mentioned a while ago that he used System Events to do that, but
> I'm not sure...
>
>
> Jean-Christophe Helary
> -----------------------------------------------
> @brandelune http://mac4translators.blogspot.com
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Best way to orderly display dialogs etc. (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: Re: Best way to orderly display dialogs etc.
  • Next by Date: Re: Best way to orderly display dialogs etc.
  • Previous by thread: Re: Best way to orderly display dialogs etc.
  • Next by thread: Re: Best way to orderly display dialogs etc.
  • Index(es):
    • Date
    • Thread