• 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: Bring the focus to the application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bring the focus to the application


  • Subject: Re: Bring the focus to the application
  • From: Steve Mills <email@hidden>
  • Date: Thu, 27 Aug 2015 15:20:12 +0000 (GMT)

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

  • Follow-Ups:
    • Re: Bring the focus to the application
      • From: Jim Brandt <email@hidden>
    • Re: Bring the focus to the application
      • From: Jörgen Stahle <email@hidden>
  • Prev by Date: Re: Bring the focus to the application
  • Next by Date: Anyone have a script to re-link files on a backup?
  • Previous by thread: Re: Bring the focus to the application
  • Next by thread: Re: Bring the focus to the application
  • Index(es):
    • Date
    • Thread