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

Variables - Data Set name from list

New Here ,
Aug 28, 2025 Aug 28, 2025

Hello, Illustrator community! Maybe a clever mind out there knows how to do this.

 

When creating print files from variables and data sets, is there a way to make sure the file name output is a variable? I would be great to use the file name from each data set to be named the same as the "filename" column and not as Data set 1, Data set 2, etc.

 

maria_3014_0-1756396696614.png

 

Example:

ORG_1122.pdf
ORG_1133.pdf

ORG_1144.pdf

ORG_2211.pdf

 

Br

TOPICS
How-to , Tools
80
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
Adobe
Community Expert ,
Sep 04, 2025 Sep 04, 2025

@maria_3014 Honestly, I don't think Illustrator native Data Sets panel have a built-in function to use a variable as the output file name when you batch-save or export. The default output names are either "Data Set 1", "Data Set 2", etc., or they are based on the original file name with a sequential number.

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 ,
Sep 05, 2025 Sep 05, 2025
LATEST

No, it's not possible. But as an alternative, I would rename my data set names, since the names can be used to set the file name at export time.

 

renaming data sets can be a pain if you have lots of them or if you do it often. 

 

this script renames data sets in a jiffy

 

// rename Data Sets as the FIRST variable data value
// https://community.adobe.com/t5/illustrator-discussions/variables-data-set-name-from-list/td-p/15480644

var idoc = app.activeDocument;

var vars = idoc.variables;
var dsets = idoc.dataSets;

for (a=0; a<dsets.length; a++) {

    idoc.activeDataSet = dsets[a];
    
    dsets[a].name = vars[0].pageItems[0].contents;
}

 

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