adobe-scriptui

save InDesign ScriptUI options in file and load in the next run

牧云@^-^@ 提交于 2021-01-29 15:31:18
问题 I built a Dialog in InDesign script that has any options. I want to save the settings the user selects in a file (For example in a file named setting.ini) to do not require a re-adjustment in the next run and the same settings are enabled for the Dialog. Is there such a possibility? 回答1: Yes, you can use the label functionality to save any information to any InDesign objects. To save things from dialogs that you want to access the next time that a script is run, it would make most sense to

Photoshop ScriptUI: Show a dialog window, close it, show it again gives an empty full size window

人走茶凉 提交于 2020-06-29 12:27:33
问题 In my script for Photoshop CC 2015 (Windows 10), written in JavaScript, I am processing all layers of the active document in a loop and want to show a setup dialog in each step. For simplification, take the following working example. The window is defined outside the loop, and among other steps which are stripped here, the window is shown once every step in the loop: #target photoshop var w = new Window('dialog', 'Title'); var b = w.add('button', undefined, 'OK'); for (var i = 0; i < 3; i++)