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

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

New Here ,
Mar 21, 2018 Mar 21, 2018

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?

TOPICS
Scripting

Views

1.5K

Translate

Translate

Report

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

Votes

Translate

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

Copy link to clipboard

Copied

not sure on that. try asking over here:

Illustrator Scripting

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thanks, I'll try that.

Votes

Translate

Translate

Report

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

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.

createSubfoldersOff.PNG

you can also set it off in your script

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

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thanks very useful

Votes

Translate

Translate

Report

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
Advocate ,
May 17, 2023 May 17, 2023

Copy link to clipboard

Copied

@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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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