Skip to main content
Participating Frequently
July 19, 2024
Question

Creating a ZIP file in InDesign

  • July 19, 2024
  • 2 replies
  • 2493 views

Good afternoon.
I need your help in finalizing the save script.
There is a script that saves a folder with fonts, IDML and INDD documents to a separate folder using doc.package For Print.
I need to make a ZIP archive from the folder it saves to.

 

The main problem is that the working folders and files are not stored on the local machine, but on network storage.

The folder is created new each time using a script.
There is no way to assign a specific folder on the NAS to the app.packageUCF method, as it will cause a lot of confusion in the files (the script is used by several people for a large number of files).

 

Maybe someone can tell me how to specify the path to the network folder to the app.packageUCF method?

This topic has been closed for replies.

2 replies

Peter Kahrel
Community Expert
Community Expert
July 19, 2024

Look into the app.packageUCF() function. Though I don't know if that works on network drives.

leo.r
Community Expert
Community Expert
July 19, 2024

Ha. Not related to this discussion, but I wasn't aware of this command. As I looked it up (in AppleScript), I also discovered the unpackage UCF command. After some testing, it appears that it can unpackage IDML files. Which eliminates the need for the zip/unzip switcheroo on Mac. I'll update that discussion, too:

https://community.adobe.com/t5/indesign-discussions/idml-file-type-doesn-t-unzip-using-mac-archive-utility/m-p/14582696#M571906

 

 

creative explorer
Community Expert
Community Expert
July 19, 2024

@a_sneg Have you tried just using the 'Package' in InDesign. if you go to File - Package, it should package all your files for you...especially if your fonts and images/artwork are linked in different folders and servers. 

m
a_snegAuthor
Participating Frequently
July 19, 2024

Yes, but Package creates a folder. And it's implemented in my script. The task is to make a ZIP archive from this folder, which will be uploaded to the cloud (self-designed cloud client can't upload folders, only files, there is no way to rewrite it, so I have an idea to automate the export process from InDesign so that it exports ZIP archive at once).

creative explorer
Community Expert
Community Expert
July 19, 2024

@a_sneg dang....For me, I guess once you package the file, you can open the folder and zip them into one zip...problem with that then, you have all the fonts, and linked files in one big zip floating around

Maybe @Robert at ID-Tasker who knows everything can solve this

m