1
votes

I am using extendscript with Photoshop, but when the version mismatch happens, Photoshop pops up a dialog

Keep layers

I just want it to keep the layers and proceed. How do I tell Extendscript to do that?

1
Can you not do a version check and supress any dialogues that may pop up? Here's a link that may help - Ghoul Fool
This thread might also prove helpful. It contains a script to capture the message and bypass the dialog. - JSuar

1 Answers

0
votes

I'd have to see the code you're using to understand why the dialog appears. However, one way around this is to call Photoshop events directly with the app.executeAction() call. The optional third argument is how you want dialogs to be handled; one of the choices you can pass in is DialogModes.NO to suppress them.

In order to understand how to create the Photoshop events, you can use the ScriptingListener plugin to see the events generated for various operations. Here's an old introduction to it. You can download the plugin from here.