• 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: Jörgen Stahle <email@hidden>
  • Date: Thu, 27 Aug 2015 15:21:32 +0000
  • Thread-topic: Bring the focus to the application

This problem is a known bug. It is solved in the latest release of OSX 10.11 beta. 

.......................
Jörgen Stahle (mobil)

27 aug 2015 kl. 17:04 skrev Jim Brandt <email@hidden>:

I have recently upgraded my OS X to Yosemite.


I have a series of scripts I use to do things at the office that everyone is using. These script interact with several different programs during their execution, with user responses to questions asked during the running of the script.


I save all my scripts as run-only applications, once they are in working form so they can be used by other staff in the office.


One of the interactions is for the user to select one or more items from a displayed list. For this, I'm using a "choose from list" command. In Lion and Mountain Lion, I preceded this command with an "activate" command to bring the focus on the running script so the dialog would appear immediately.


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.


Any suggestions as to how to bring the focus back to the running script application so it doesn't need to be selected from the dock to get the dialog to display?


TIA,


Jim Brandt

_______________________________________________
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: 
 >Bring the focus to the application (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: Bring the focus to the application
  • Next by Date: Re: Bring the focus to the application
  • Previous by thread: Re: Bring the focus to the application
  • Next by thread: Re: Bring the focus to the application
  • Index(es):
    • Date
    • Thread