Copy link to clipboard
Copied
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
Copied
not sure on that. try asking over here:
Copy link to clipboard
Copied
Thanks, I'll try that.
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
Hi Carlos,
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?
Thanks
Trevor
Copy link to clipboard
Copied
Hi Trevor, I got it by scouring the preferences file.
Copy link to clipboard
Copied
Thanks very useful
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
@schroef some of the entries in the pref file are easy to spot, they match the UI strings, for others I use trial and error, a bit of guessing, a bit of luck