“activate me” is not working as expected in Script Editor 2.7/Yosemite.
I have an applescript saved as an Application. After a tell block for the Finder (or within a tell block for the Finder), I want to display a dialog from the App. In Mavericks the line “activate me” would bring the App to the front. But this no longer works in Yosemite… The App icon jumps in the dock, and I have to click on it to get the dialog.
(*
Example
Save as Application
*)
tell application "Finder"
display dialog "This is a message from the Finder" with icon 1
end tell
activate me --THIS DOESN'T WORK???
display dialog "This is a message from me" with icon 1
Curiously, it works ok when run as script from Script Editor, but not when saved as .app
Any ideas?