What I would try in ExtendScript would be to use Folder.appPackage to get a reference to the Photoshop app file, and use File.execute() to actiavte it. Pretty hacky, but it should work...
I'm not sure what the equivalent would be using the Air File class, but if all else fails, you can always use:
to use a custom ExtendScript function to do that...
Well, scripting always involves some kind hacking
But it's a pity, your suggestion doesn't help
I'm writing the following in .jsx file:
var f = new File("//Applications//Adobe Photoshop CS5//Adobe Photoshop CS5.app");
And in ActionScript:
Nothing works. It seems like flash/CS Extention panel loses focus, but it's not
being returned back to Photoshop (on Mac).
I'm doing the following test:
1) Open a test panel which has a "Lose focus" button, that does what you've suggested above
2) Create new document
3) Create a rectangular selection inside of it
4) Click on the panel to focus it
5) Click the button "Lose focus"
6) Click up, down, or Cmd+A, etc. combinations (to move current selection, or to call a Photoshop tool by a keyboard shortcut) - nothing happens except a Mac error sound.
I can clearly see that flash inside the panel lost its focus. I'm not sure if the panel itself, that contains all the
flash lost it. And I can't see what has focus now. When I click inside of the document, after all these voodoo things -
the shortcuts start to work.
(I posted the previous test panel sources on prerelease forums. I can post it again.
It's actually a blank panel with the button that calls a script, nothing more)