• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

app.refresh();

Advocate ,
Sep 05, 2017 Sep 05, 2017

Copy link to clipboard

Copied

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

the functions slow down a lot

would there be a solution to this problem?

TOPICS
Actions and scripting

Views

1.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Sep 05, 2017 Sep 05, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 06, 2017 Sep 06, 2017

Copy link to clipboard

Copied

Why you need app.refresh() ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 06, 2017 Sep 06, 2017

Copy link to clipboard

Copied

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 author
www.ps-scripting.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 06, 2017 Sep 06, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 06, 2017 Sep 06, 2017

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

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 author
www.ps-scripting.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

LATEST

Thank you

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines