what version of OS X?
try this:
take care, that both apps are behind some other app (e.g. a Finder window):
Debug.on(3) safari = App("Safari") icon = App("Icon.app") safari.focus() icon.focus()
and paste the output + info wether the apps came to forground
what version of OS X?
try this:
take care, that both apps are behind some other app (e.g. a Finder window):
Debug.on(3)
safari = App("Safari")
icon = App("Icon.app")
safari.focus()
icon.focus()
and paste the output + info wether the apps came to forground