0
How to loop through data merge in script?
New Here
,
/t5/indesign-discussions/how-to-loop-through-data-merge-in-script/td-p/1098382
Oct 01, 2008
Oct 01, 2008
Copy link to clipboard
Copied
I am new to scripting in InDesign, but have been writing VB for a long time and am hoping to to the following via a script where no user intervention is required:
1) Open InDesign with a document that contains data merge fields and a basic layout.
2) Loop through each record in the data, one at a time.
3) For each record, build an InDesign document that consists of snippets placed sequentially, based on information in the data.
4) Create a pdf from the document.
5) Close or clean out the document and loop back for the next one.
First of all, is this possible? If so, can someone point me to resources that will tell me how to do these things? For example, how to loop through the records in the data source. Is there a comprehensive reference for scripting in InDesign somewhere?
I read the online scripting guide for VBscript but that is not a reference, only gives some examples of how to do things. The help that comes with InDesign has even less information.
Thanks for any and all help,
Beth
1) Open InDesign with a document that contains data merge fields and a basic layout.
2) Loop through each record in the data, one at a time.
3) For each record, build an InDesign document that consists of snippets placed sequentially, based on information in the data.
4) Create a pdf from the document.
5) Close or clean out the document and loop back for the next one.
First of all, is this possible? If so, can someone point me to resources that will tell me how to do these things? For example, how to loop through the records in the data source. Is there a comprehensive reference for scripting in InDesign somewhere?
I read the online scripting guide for VBscript but that is not a reference, only gives some examples of how to do things. The help that comes with InDesign has even less information.
Thanks for any and all help,
Beth
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Engaged
,
/t5/indesign-discussions/how-to-loop-through-data-merge-in-script/m-p/1098383#M337421
Oct 01, 2008
Oct 01, 2008
Copy link to clipboard
Copied
I dont know anything about VBscript, but in the Extendscript Toolkit, in the menu "Help" you can find the "Adobe Indesign CS3 Object Model"
Hope this helps
Hope this helps
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_Beth_Schweitzer_
AUTHOR
New Here
,
LATEST
/t5/indesign-discussions/how-to-loop-through-data-merge-in-script/m-p/1098384#M337423
Oct 02, 2008
Oct 02, 2008
Copy link to clipboard
Copied
Thank you! Your answer sent me on a mission to find an object model for VBscript and I finally figured out how and where to find it. This should get me going in the right direction.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

