Skip to main content
September 13, 2012
Answered

Exporting package and compressing it as a ZIP in ActionScript

  • September 13, 2012
  • 1 reply
  • 4304 views

Hi everyone,

Our users need to be able to export InDesign packages to our remote web app directly from our InDesign extension. Compressing it to ZIP is probbaly the best option.

I saw that this question had already been asked and answered for JavaScript (http://forums.adobe.com/message/4243513#4243513). My question is, is there a good zip library for actionscript out there; the few I found haven't been maintained for years. Or is the best option to also use JsZip here? I wish I could use command line tools, but our users work on a large variety of OS and we can't guarantee that they will have the proper tools installed.

Thanks in advance for your help.

- Bastien

This topic has been closed for replies.
Correct answer lomorgan

I can't officially endorse anything, but I've used fzip before (http://codeazur.com.br/lab/fzip/), which now seems to be part of as3commons: http://www.as3commons.org/as3-commons-zip/index.html. From what I remember it worked pretty well. There's some sample code here for archive creation: http://wahlers.com.br/claus/blog/fzip-alpha-release-create-and-modify-zip-archives/, though this was before it moved to as3commons, so I think the class names will have changed slightly.

Hope that helps,

Louis

1 reply

lomorganCorrect answer
Adobe Employee
September 13, 2012

I can't officially endorse anything, but I've used fzip before (http://codeazur.com.br/lab/fzip/), which now seems to be part of as3commons: http://www.as3commons.org/as3-commons-zip/index.html. From what I remember it worked pretty well. There's some sample code here for archive creation: http://wahlers.com.br/claus/blog/fzip-alpha-release-create-and-modify-zip-archives/, though this was before it moved to as3commons, so I think the class names will have changed slightly.

Hope that helps,

Louis

Loic.Aigon
Legend
September 13, 2012

Hi,

I did zip files once in a applescript by using the shell zip command. I would give the NativeProcess a chance to use the system tool for zipping files. I guess there is a native command in Windows as well. I am soon doing this and this is the lead I will investigate first.

Best,

Loic