Re: Best way to orderly display dialogs etc.
Re: Best way to orderly display dialogs etc.
- Subject: Re: Best way to orderly display dialogs etc.
- From: "Nigel Garvey" <email@hidden>
- Date: Tue, 31 Oct 2017 13:05:23 +0000
Jean-Christophe Helary wrote on Tue, 31 Oct 2017 19:47:52 +0900:
>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 ?
Dialogs ('display dialog', 'choose from list, 'choose file', etc.) are
displayed by the application which is the explicit or implicit 'tell'
target. You either have to tell that application to activate so that it
comes to the front to display the dialog or send the dialog command to
the application which is already frontmost:
tell application (path to frontmost application as text)
display dialog "Hello"
end tell
>I think Yvan mentioned a while ago that he used System Events to do
>that, but I'm not sure...
Yvan was using SystemUIServer, but I find there are focus issues with
that.
NG
_______________________________________________
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