I have a fairly complex script that exports different things from an Illustrator document. I am using document.exportForScreens to easily export all artboards at once. However, I can't find a way to turn off Create sub-folders in the script. Is that possible?
Copy link to clipboard
Thanks, I'll try that.
it's tied to the UI, it remembers your last setting. Just make sure it's off in the UI.
you can also set it off in your script
app.preferences.setIntegerPreference ('plugin/SmartExportUI/CreateFoldersPreference', 0);
Worked for me so I marked as correct.
Did you get 'plugin/SmartExportUI/CreateFoldersPreference' from the SDK? If not from were did you get it?
Hi Trevor, I got it by scouring the preferences file.
Thanks very useful
awesome, this was making me go nuts. i had this issue with my logo packer extension. sort of remembered some options but could remember if this was done by settings.
How did you find what ket to use in the setInteger item?