// Create book
var myBook = app.books.add(fullName=SOIPath+"PW.indb");
// Add the front cover
myFilename = myPath+"Modules/my_Cover.indd"
When I call the bookContents.add function, I get a SaveAs dialog with my file name filled in. Can someone please tell me what I'm doing wrong?