Copy link to clipboard
Copied
I have a script that launches a dialog. A user can pick a few dropdown and checkbox options. Is there a way to store the last used settings for the next time the dialog pops up? Do native indesign dialogs have this functionality?
Thanks
Copy link to clipboard
Copied
There's no built-in scriptUI way of saving settings. But you can store
the user's setting in a document label:
myDoc.insertLabel("MySpecialScriptDropdown1", DropDown1SelectionAsString);
Ariel
Copy link to clipboard
Copied
Thanks Ariel. I was not aware of the insertLabel method. I will inverstigate more. Thanks for the tip. Appreciate it.
Copy link to clipboard
Copied
here are two great articles from tomaxxi:
http://indisnip.wordpress.com/2010/07/31/saving-script-data-within-document/
http://indisnip.wordpress.com/2010/12/31/saving-script-data-using-json-part-2/
Copy link to clipboard
Copied
Thanks Vamitul. Those are good resources.
Copy link to clipboard
Copied
Hi,
if working with a database and documents built dynamically a good old cfg-file may be the choice ...