Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

java.util.zip.ZipFile

Guide ,
Sep 07, 2017 Sep 07, 2017

Hello,

Is it possible to use java.util.zip.ZipFile from Extend Script?

Thanks.

P.

TOPICS
Scripting
559
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Sep 07, 2017 Sep 07, 2017

You can invoke a platform language script via app.doScript() - e.g. AppleScript.

From there you can invoke a shell script.

That shell script can invoke the java runtime with any Java program.

Your Java program would then use java.util.zip.ZipFile.

If you need to work with IDML files, there are also the methods app.packageUCF and app.unpackageUCF, but there are reports that they do not work with binary files.

How to zip files using javascript

Translate
Guide ,
Sep 07, 2017 Sep 07, 2017

You can invoke a platform language script via app.doScript() - e.g. AppleScript.

From there you can invoke a shell script.

That shell script can invoke the java runtime with any Java program.

Your Java program would then use java.util.zip.ZipFile.

If you need to work with IDML files, there are also the methods app.packageUCF and app.unpackageUCF, but there are reports that they do not work with binary files.

How to zip files using javascript

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 08, 2017 Sep 08, 2017
LATEST

Thank you.

P.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines