Skip to main content
albmig
Participant
July 16, 2020
Answered

Creation of a book (indb) from a list of records

  • July 16, 2020
  • 3 replies
  • 808 views

Hi everyone!

I have to create several books combining indd files.

My goal is to create an indb book starting from a file (xls, csv, xml, ....) where I write the position of single indd files (with path) in the order I want.

Is it possible? Is there already such a script?

 

Thanks a lot!

Alberto

This topic has been closed for replies.
Correct answer Kasyan Servetsky

Here I made a quick & dirty script for you. You didn't mention your OS and Indy's version. Today I'm on a Mac and InDesign 2020 so made it for Mac. But it's easy to make it work on Windows as well. Here's the function. Maybe will do this later if time permits.

— Kas

3 replies

Ashutosh_Mishra
Inspiring
July 25, 2020

Hi there,

 

Thanks for reaching out. I hope your issue is resolved now. We'd appreciate if you can mark the appropriate answer correct.

If you used any other method, please share it here. It'll help other users having similar concern.

If you still have issues, let us know. We'll be happy to help.

 

Regards,

Ashutosh

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
July 16, 2020

Here I made a quick & dirty script for you. You didn't mention your OS and Indy's version. Today I'm on a Mac and InDesign 2020 so made it for Mac. But it's easy to make it work on Windows as well. Here's the function. Maybe will do this later if time permits.

— Kas

albmig
albmigAuthor
Participant
July 23, 2020

Thanks a lot !!

brian_p_dts
Community Expert
Community Expert
July 16, 2020

This script by Kasyan will create a book out of documents in a selected folder: http://kasyan.ho.ua/downloads/all/BookOfSelectedFolder.zip

 

If you want to do from an input, yes it's doable. You would use app.books.add() to make the book, and from there book.bookContents.add(file), where file is a File object created from your input readln.