Re: Bring the focus to the application
Re: Bring the focus to the application
- Subject: Re: Bring the focus to the application
- From: Jim Brandt <email@hidden>
- Date: Thu, 27 Aug 2015 19:05:02 -0500
Steve, Jörgen Stahle,
Thank you.
Jim Brandt
On 27-Aug-2015, at 10:20 AM, Steve Mills <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