Skip to main content
Kukurykus
Legend
May 4, 2019
解決済み

(win = new Window('palette')).show(), $.sleep(5000)

  • May 4, 2019
  • 返信数 2.
  • 2204 ビュー

Can some of Macintosh users tell me if it works for you in one of these (or all) Photoshop releases: 2017, 2018 and 2019?

(win = new Window('palette')).show(), $.sleep(5000)

On Windows it shows little palette for 5 seconds, but on Macintosh with CC 2018 either nothing is displayed or white screen.

Please tell me how it's for you, as I don't know this is problem with computer (system), or certain Photoshop, thank you!

このトピックへの返信は締め切られました。
解決に役立った回答 Geppetto Luis

I tried the script on Macintosh with photoshop cc14 cc18 cc19

unfortunately it does not work.

返信数 2

Tom Ruark
Inspiring
May 17, 2019

For Photoshop, if you want to make a 'palette' (we call them panels now) you will need to use CEP and that SDK/API.

GitHub - Adobe-CEP/Getting-Started-guides: Getting Started guides and samples for CEP extensions

If you first pop a ScriptUI 'dialog' and keep that dialog visible you should be able to create a 'palette' then. Make sure you dismiss the 'palette' before you dismiss the 'dialog'.

Kukurykus
Kukurykus作成者
Legend
May 17, 2019

Yes new palettes are now CEP panels, but to use fully native ones we need  Windows or do a trick on Mac.

To do what you suggested is possible on Mac but with palette showed before dialog. Anyway dialog together with palette is confusing, so like in some earlier example I did that with one refresh.

The problem is ProgressBar that doesn't work on Macintosh without refreshing it every iteration in contrary to Windows.

And still when someone doesn't use ZXP installer for extensions but .jsx then there can't be panel yet displayed, so native palette must be used. This way with longer installtion ProgressBar has sense only on Windows, on Mac that's better to use singly refreshed palette (with growing time).

Geppetto Luis
Geppetto Luis解決!
Legend
May 5, 2019

I tried the script on Macintosh with photoshop cc14 cc18 cc19

unfortunately it does not work.

Kukurykus
Kukurykus作成者
Legend
May 5, 2019

Okey, thank you. But how then you use 'palette' instead of 'dialog' for new Window in your scripts, if you does?

Geppetto Luis
Legend
May 5, 2019

in order not to close window in mac try using this method

the window opens after 5 seconds

to exit the window click esc on the keyboard

(win = new Window('palette',"TEST"))

close = false;

win.onClose = function () {

close = true;

};

win.show(), $.sleep(5000) 

while (close === false) {

app.refresh();

}