Bridge: ScriptUI window.update bug macOS

  • 1
  • Problem
  • Updated 3 months ago
  • (Edited)
Using the window.update() function (JavaScript Tools Guide CC, page 121) works on Windows but not macOS during a 'for' loop.

I have been developing a script application to export JPEGs in Bridge and am almost finished. Splitting development between Windows and macOS.

https://feedback.photoshop.com/photoshop_family/topics/please_restore_export_panel_in_bridge_cc?topi...

The export loop is adapted from the "SnpSaveAsJPEG.jsx" sample code in the Bridge 2018 SDK. I run the export in a palette window and have tried updating a text field during the loop as a progress indicator. (The linked downloadable script doesn't have the window.update code, because it wasn't working.)

The update code works on Windows, the text is updated (both statictext and edittext.) On the Mac, I get a spinning rainbow cursor while the export is active and no updates. The same script.

Adding an alert DOES break the loop and allow the update code to fire.
Photo of David Converse

David Converse

  • 256 Posts
  • 59 Reply Likes

Posted 3 months ago

  • 1
Photo of David Converse

David Converse

  • 256 Posts
  • 59 Reply Likes
Until it breaks on Windows too... Not Responding...

Which reminds me, I have TERRIBLE problems with Bridge on Win 7/10 locking up, Not Responding, for a variable amount of time. Then the UI comes alive again and all is well. :sigh:

I guess there won't be a progress bar.