Skip to main content
interesting_Flower157F
Inspiring
March 28, 2010
Question

JS CS3: ScriptUI - window and panel loses focus on Mac

  • March 28, 2010
  • 2 replies
  • 1206 views

Hi,

Have made a script to export selected textframes as text files.

When the script runs on a PC the script window stays in front of the document as intended.

Much to my surprise this is not the case on Mac, On Mac the script loses focus and goes behind the document.

Is this a bug or is there a workaround?

Using the folowing to create/start the UI.

var win = new Window( "window", "Text Exporter" );
win.myPanel = win.add("panel");

with(win){
    win.Pnl = add('panel', undefined, 'Textframes for export');
    win.Pnl.orientation = 'column';

     ...

This topic has been closed for replies.

2 replies

Harbs.
Legend
March 28, 2010

Use "palette" -- not "window"...

Harbs

Harbs.
Legend
March 28, 2010

If you want to use specifically "Window" for some reason (although I've never had the need), you might be able to use show() to bring it to the front.

Harbs

Kasyan Servetsky
Legend
March 28, 2010

sorry