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

progressDialog background doesn't paint

New Here ,
Jun 16, 2005 Jun 16, 2005
I'm working on a Bridge script to copy files from my card reader into a directory structure based on EXIF data. It works (most of the time), but the progress dialog never repaints correctly, and sometimes the progress dialog and the Bridge window go completely white until the script is finished.

I'm using the progressDialog object from AdobeLibrary1.jsx. When it doesn't go white, the status text and progress bar are updated properly, but the window background is never painted. I've tried window.show() and document.refresh() with no effect. Is there something else I should try?

Thanks.
Henry
TOPICS
Scripting
393
Translate
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
New Here ,
Jun 16, 2005 Jun 16, 2005
Try putting your progress bar on a panel and then toggle the panel.
dlg.msgPnl.hide();
dlg.msgPnl.show();

I used this to correct repaint problems before.

Larry
Translate
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
Community Beginner ,
Jun 17, 2005 Jun 17, 2005
LATEST
Henry,

This is one we have to live with for now. When bridge scripting is doing anyting intensive (such as copying files), there will be repaint problems. In the Import from Camera script, we flip up a warning dialog that this will happen.

Larry's idea was worth a try, but it didn't work for me. I've tried a bunch of other ideas as well without success.

One way that should work, is to use BridgeTalk. Have another application (Photoshop?) actually execute the copy, and send status messages back to bridge. We didn't opt for this in the Import from Camera script as it seemed too kludgy. Users might wonder why Photoshop is starting when all they wanted to do was copy some files.

If you want to try that - take a look at the BridgeTalkLongProcess Object in AdobeLibrary1.jsx. It allows you to execute a long running process in another app, and get progress reports back to bridge. It provides the progress dialog for you, and handles all of the messaging. All you need to do is put a function call:

sendBackStatus( progress, message )

in your target app script code. progress is an integer 1-100, message is what you'd like shown in the progress dialog. An example of how to use it is the Contact Sheet script.

Good Luck

Bob
Adobe WAS Scripting
Translate
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