I have script for Package creation which was modified by “Mi_D”. Script is working pretty well. It’s creating Package folder in same path. I am looking for small modification in this script. Instead of Package folder I need a .zip file in the same path, kindly help me. I have checked in these forms, scripting guide…etc. but there is no helpful information.

It is quite possible to write from scratch your own ZIP generator in JavaScript, but fortunately you'll find various available libraries on the Internet to facilitate the job! Personaly I've used JSZip as a starting point:

I am extremely sorry for late replay. Thanks for all your kind and support. I need to upload my final artwork files on internet. With (Package) .zip + .pdf all tasks.

To do this I have script for Package+ pdf creation now I am requesting for instead of package folder, .zip can give the final result for my needs. So I can upload the directly .zip + .pdf this can help for my all daily tasks.

Sorry for the delay. I had hoped someone with more VB experience would appear.

It looks from Steven's example and from Googling that under Windows, the way you create .ZIP files is you manually create an empty ZIP file by writing the ZIP header, and then Windows will let you open the ZIP file and copy in files.

You can call the VBScript code from JavaScript. I don't use InDesign under Windows, so I can't test this for you, but you put it all together something like this:

I am a beginner in scripting so, generally, got a problem with determine where is a mistake and where is my less of knowledge.

Could you, John, or some of you, Masters, look back into this code, pls

Unfortunately, Jump_Over, I don't have the answer here. I merely took Steven's code from post #3 and wrapped it in JavaScript.

You are correct that it looks like it has some real problems. I also think you are right about the backslash, but I am not sure what is intended with the undefined variables.

I would suggest you look elsewhere for VB to create zip files. I know there have been other threads on this forum and almost certainly there are better places to look off of this forum. Sorry I can't be more helpful.