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