Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Mar 21, 2018 Mar 21, 2018

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?

TOPICS
Scripting
2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 11, 2018 May 11, 2018

it's tied to the UI, it remembers your last setting. Just make sure it's off in the UI.

createSubfoldersOff.PNG

you can also set it off in your script

app.preferences.setIntegerPreference ('plugin/SmartExportUI/CreateFoldersPreference', 0);

Translate
Adobe
Community Expert ,
Mar 21, 2018 Mar 21, 2018

not sure on that. try asking over here:

Illustrator Scripting

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2018 Mar 21, 2018

Thanks, I'll try that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2018 May 11, 2018

it's tied to the UI, it remembers your last setting. Just make sure it's off in the UI.

createSubfoldersOff.PNG

you can also set it off in your script

app.preferences.setIntegerPreference ('plugin/SmartExportUI/CreateFoldersPreference', 0);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 24, 2019 Feb 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 24, 2019 Feb 24, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 25, 2019 Feb 25, 2019

Thanks very useful

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 17, 2023 May 17, 2023

@CarlosCanto 

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 17, 2023 May 17, 2023
LATEST

@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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines