Skip to main content
Participant
March 21, 2018
Answered

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

  • March 21, 2018
  • 2 replies
  • 2393 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

Participant
March 21, 2018

Thanks, I'll try that.

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect 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);

Trevor:
Legend
February 24, 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

Doug A Roberts
Community Expert
Community Expert
March 21, 2018

not sure on that. try asking over here:

Illustrator Scripting