Thanks a million.
var doc = app.activeDocument;
var ThePackagePath = Folder("~/Desktop/input/test");
doc.packageForPrint(ThePackagePath, true, false, false, false, false, false,false,"",false);
What's the problem?
The problem is that we can't process the package in our workflow because
the fonts in the package are still in use by Indesign on the client