Skip to main content
Geppetto Luis
Legend
September 5, 2017
Question

app.refresh();

  • September 5, 2017
  • 5 replies
  • 2184 views

I noticed that when I apply app.refresh ();

the functions slow down a lot

would there be a solution to this problem?

This topic has been closed for replies.

5 replies

Davide_Barranca12040269
Legend
September 7, 2017

redraw, as far as I remember, was an ActionManager equivalent of refresh, that can be used in older PS versions – same concept, though.

Davide Barranca - PS developer and authorwww.ps-scripting.com
Jarda Bereza
Inspiring
September 7, 2017

That's true, but isn't there one more GUI method for dialog redraw?

Geppetto Luis
Legend
September 7, 2017

Thank you

so I have to continue to use app.refresh ();

Jarda Bereza
Inspiring
September 6, 2017

I need app.refresh() for opening smart object content and "while" loop comparing active document with last opened or custom $.sleep() didn't worked for me. It was stucked in endless loop.

I noticed that there is Kevlar API with Idle event. How it works?

Photoshop Kevlar API Additions for Generator · adobe-photoshop/generator-core Wiki · GitHub

Geppetto Luis
Legend
September 6, 2017

I have seen on the ps-scripts site a question similar to mine

and it was suggested to use windows.redraw ();

I tried this solution but it does not work.

Davide_Barranca12040269
Legend
September 6, 2017

I'm afraid that if you really need app.refresh(), you have to bear with the extra slowness that said refreshing implies.

Davide Barranca - PS developer and authorwww.ps-scripting.com
Jarda Bereza
Inspiring
September 6, 2017

Why you need app.refresh() ?

JJMack
Community Expert
Community Expert
September 5, 2017

The only thing I can think of is to have Photoshop refresh only what the user needs to see and use.  For example toggle all palettes off so Photoshop only needs to refresh the image being worked on.  Pallets do not need to be refreshes for they are not being displayed. And only use app.refresh(); when the user need to see the current image and do something. Like an interactive transform or select an image file etc.

JJMack