0 Replies Latest reply on Jun 14, 2013 12:04 AM by chin lee

    Could not create assignment package

    chin lee

      Hi guys, I'm new with Indesign Script, and I try to create assignment package (ICAP), but when I run this code, it's appeared error message "The assignment package manifest file could not be created. The assignment file location ma be locked". So please give me a solution, thank you!

       

      var doc = app.open( new File('/c/555.idml') );

       

      var assignmentFile = new File("~/Desktop/Test.icma");

       

      var indd = new File('/c/555.indd');

      if(doc.saved == false) {

          doc.save( indd, true );

      }

       

      var assignment = doc.assignments.add("Test", assignmentFile, true, {name:"Test"});

       

      assignment.createPackage(new File("~/Desktop/Test.icap"));