Re: Bring the focus to the application
Re: Bring the focus to the application
- Subject: Re: Bring the focus to the application
- From: Jörgen Stahle <email@hidden>
- Date: Thu, 27 Aug 2015 16:41:51 +0000
- Thread-topic: Bring the focus to the application
As I wrote this bug is reported - and is fixed in OSX 10.11 El Capitain (now in beta).
.......................
Jörgen Stahle (mobil)
On Aug 27, 2015, at 10:04 AM, Jim Brandt <email@hidden> wrote:
Under Yosemite, the script (application) wants activated, indicated by the bouncing icon in the dock, before the dialog is displayed.
I surrounded the "choose from list" command with:
tell me
activate
set Response to choose from list MyChoices with multiple selections allowed
end
When run as a script, this works. When run as an application, I still need to activate the script from the dock to make the dialog show up.
Pretty annoying, ain't it? Make sure you report this bug to Apple. This seems to work for me. I'm on 10.10.5.
set myName
to name
of me
tell application
"System Events"
set
frontmost
of
application process myName
to
true
end tell
tell application
myName
choose from list {"bob"}
end tell
Sent from iCloud's ghastly UI, so sorry about the formatting
|
_______________________________________________
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