Skip to main content
New Participant
March 21, 2018
Answered

Toggling Create sub-folders in Export for Screens from a script

  • March 21, 2018
  • 2 replies
  • 2383 views

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?

This topic has been closed for replies.
Correct answer CarlosCanto

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);

2 replies

New Participant
March 21, 2018

Thanks, I'll try that.

CarlosCanto
CarlosCantoCorrect answer
Community Expert
May 11, 2018

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);

CarlosCanto
Community Expert
February 25, 2019

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


Hi Trevor, I got it by scouring the preferences file.

Doug A Roberts
Community Expert
March 21, 2018

not sure on that. try asking over here:

Illustrator Scripting