Dialogs versus menus

General Discussion of Scripting for Adobe Bridge

Moderators: Tom, Kukurykus

johnbeardy

Dialogs versus menus

Post by johnbeardy »

Does anyone experience delays with scripts involving dialog windows?

I have a group of metadata-related tasks and have two ways of scripting the work. The more elegant way involves a dialog window with 5 check boxes - the OK button then updates the metadata in accordance with the user's choices. The second way is 5 scripts and 5 submenus. In all cases the central code uses thumb.synchronousMetadata and loops through the thumbnails. Essentially that part of the code is the same, and the end results are identical.

When I run the dialog-based script, there is a delay after the looping code has completed. It's as if Bridge is hanging. When I run a script from a submenu, Bridge is immediately available to regular user interaction.

Any thoughts?

John