Questions tagged [zip]

A type of file compression used to save space for storage or transfer. Very common due to built in support in both the Mac OS and Windows OS.

Filter by
Sorted by
Tagged with
1 vote
0 answers
68 views

Why can't I AirDrop a folder or .zip of files to iPhone's Files app?

I have files on a Mac that I want to copy via AirDrop to the ‘Files’ app on my iPhone for backup purposes. They are .html, .css, .js, and similar web formats. I do not need to modify these files on my ...
Mentalist's user avatar
  • 1,037
0 votes
0 answers
313 views

How to remove __MACOSX and .DS_Store from zip files in the whole directory mac

I need to create a script that searches and removes __MACOSX and .DS_Store from zip files in the whole system (MACOS). I have found this useful command that does the job but only if you are already in ...
Milodoc's user avatar
0 votes
0 answers
72 views

Incorrect/Generic Icons for Zip Files in Dock Downloads Stack

Several months ago I started seeing a generic document icon for ZIP files when they are shows in my Downloads stack in the Dock. I've tried clearing icon caches from icon service and the Dock, but ...
hohle's user avatar
  • 3
0 votes
1 answer
79 views

zip: cannot use the -FF flag and -q flag at the same time

I am having trouble quietly zipping a large zip file which needs fixing. I have a large zip file that needs fixing so I can use -FF flag: zip -FF TEST.zip --out TEST_fixed.zip If I want to suppress ...
mqjg's user avatar
  • 1
2 votes
2 answers
2k views

MacOS zip folder error code -36/ couldn't communicate with a helper application

I want to zip a folder (any folder). When I try to do so I get: couldn't communicate with a helper application Also, when I try to copy any folder I get exactly the following: Finder can’t complete ...
Pollastre's user avatar
1 vote
1 answer
101 views

Zip .jpg files within multiple subFolders

I need an AppleScript to zip files (not folders) contained in several sub_subfolders. At the end of each day we have a main folder with a name like SR_2022_Oct_20 inside the main folder are sub ...
JBS's user avatar
  • 45
5 votes
1 answer
1k views

Is there a way to prevent macOS's archive utility from unarchiving inner zip files?

I have a zip file, within it I have another zip file, and within that file I have a txt file. When I unzip the outermost file with Apple's archive utility, it unarchives the inner files automatically. ...
pavel_orekhov's user avatar
1 vote
0 answers
729 views

Unable to compress / zip zero byte files in external exFat drive in Mac OS

Why can't I compress/zip a zero byte file which is located in an external exFat drive in Mac OS ? I keep getting this error, The operation couldn’t be completed. Undefined error: 0. I have some marker ...
anarchy's user avatar
  • 170
3 votes
1 answer
470 views

AppleScript for zipping folders does unexpected things

I compiled the following script to zip multiple folders with only their contents. (So for instance, folder X containing files A, B and C will form a zip file containing A, B and C and not folder X as ...
LauLauPeet's user avatar
1 vote
1 answer
189 views

Recursive ZIP won't work in zsh

Until catalina I used zip -r xmp.zip . -i *.xmp To add all xmp files from subdirectories to xmp.zip. Upgraded to mojave (zsh) and now it won't work anymore (return no matches found). How could I do ...
ariel's user avatar
  • 125
1 vote
1 answer
2k views

Mac Zip without "surrounding Folder" on PC?

I have a problem with Mac Zip files in exchange with Windows PC. My Mac folder structure looks like that: Folder File 1 File 2 If I create a Zip from "Folder" on a Mac and copy that to the ...
Alf's user avatar
  • 11
0 votes
0 answers
416 views

How to set the version number metadata on a zip file?

I use zip files as a simple way of bundling some macOS software for distribution in our organization. I want to set the version number displayed by the Finder's Get Info box, similar to how a version ...
mhucka's user avatar
  • 1,258
5 votes
1 answer
614 views

What is the technical explanation for why Archive Utility can break certain apps, while other unarchivers won't?

I just experienced this issue described in this answer. I had downloaded a zip file containing a macOS app, and first unzipped it with Archive Utility, when trying to open the app, I got the error ...
Fiksdal's user avatar
  • 672
4 votes
2 answers
2k views

unzip archive with filenames containing umlaut

I got a zip archive containing files some of which with a name containing German umlaute, such as ö. The unzip command on a terminal fails to create such files, complaining about an illegal byte ...
Walter's user avatar
  • 1,230
1 vote
2 answers
3k views

Using `jar` to create “zip” file … Mac won't open the zip, says “It is an unsupported format” … why?

I have a build system with a command line driven batch file that uses jar (from Java JDK) on a Windows machine to make a zip file like this ... jar cf c:\target\Application-1.5.zip -C Application-1.5/ ...
AvaTaylor's user avatar
  • 113
0 votes
2 answers
679 views

How to download a list of URLs saved in a text file on iOS? [closed]

I have a list of URLs saved in a text file separated by spaces, and I would like to download every single one to my iPad as a zip file. How can I do that?
Galaxy-Coding's user avatar
0 votes
1 answer
2k views

How can I extract a .bz2 files directly into an external hard drive?

I have a large .bz2 file of 18 gigabytes and there's no way it will extract on to my very small computer storage. So I got an external hard drive, copied the file to it, and pressed 'extract' ...
Maxijazz's user avatar
3 votes
1 answer
431 views

How do I compress a file into .xip format?

I wanted to compress the Xcode.app I downloaded from the app store into .xip format. Is it the same as compressing it to .zip and renaming?
Ted's user avatar
  • 251
1 vote
0 answers
427 views

Is there any way to recover overwritten notes on mac?

I pasted something on top of a note on my Mac that had some moderately important stuff, switched notes (which means no ctrl-z), and I'm trying to recover it. My first mistake is that I unfortunately ...
SMc's user avatar
  • 11
0 votes
1 answer
572 views

How to compress multiple folders into multiple zip files

My folder structure is: YEAR - MONTH - DAY - SUBFOLDERS I want to compress each subfolder in the [DAY] directories. The solution from here which is: for i in */; do zip -r "${i%/}.zip" &...
zippers28847's user avatar
1 vote
1 answer
439 views

Compress file as .tar.gz instead of .zip

If I right click a file and I compress it I obtain a file.zip. Is it possible to set right click-->compress to produce a file.tar.gz as output? I always have to do it through terminal but many times I'...
AnOrAn's user avatar
  • 123
4 votes
2 answers
1k views

"Compress file" in Catalina sets wrong permissions on ZIP file

When zipping one or more files via Finder (Right click on file → Compress) the created the ZIP file has permissions set to rw------- / 600. When I use the zip command in Terminal, permissions are set ...
florieger's user avatar
  • 165
0 votes
0 answers
219 views

Automator or Apple Script to compress 3 folders?

I have 3 folders I want to compress to an archive and put that archive in a specific location. I'm running in to a few different issues depending on how I tackle the problem. All 3 files live in ~/...
Feanux's user avatar
  • 113
0 votes
0 answers
42 views

Unpacking ZIP packages

For some ZIP file I end up with an "invalid argument" Any ideas? The file can at the same time be unpacked on another PC.
Andreas Diehl's user avatar
0 votes
1 answer
1k views

.ZIP from Windows to Mac: folder structure lost - how to avoid that?

I am creating .zip-files on windows that I want to make available to Mac-Users (created with ZipFile.CreatefromDirectory from .NET Core). However, when I extract these files on my Mac (running Mojave, ...
MBaas's user avatar
  • 137
0 votes
0 answers
289 views

Zipping (Archive Utility) in 10.14.6 using other sorting order than Finder

As of macOS 10.14.6 (maybe since 10.14.0) I noticed that when I zip files directly within Finder (Select files, right click, compress) that the resulting Archive.zip contains the selected files but in ...
basZero's user avatar
  • 123
3 votes
2 answers
2k views

How to convert non-utf8 encoding to utf-8 encoding during unzip?

I have the same problem which described here. The only difference is I need to do this in MacOS. Basically, all files are encoded in non-utf8 and zipped on Windows. When I unzip it on MacOS, they ...
sgon00's user avatar
  • 2,144
1 vote
1 answer
157 views

How to zip a script-file for MacOS under Windows and give it correct attributes?

I am working under Windows 10 and am putting together a few data-files and a simple bash-script that I want to share with Mac-Users. (I am just learning MacOS, so may have drawn wrong conclusions ...
MBaas's user avatar
  • 137
1 vote
1 answer
1k views

Opened a zip file in a spam email which created a folder in the /net folder

I accidentally opened a zip file from a spam email. There is a text file in the zip file which I have also clicked to view. Later, I checked that this file has the following content: /net/us.e-fax....
aaronheid's user avatar
0 votes
1 answer
651 views

Zipfile deleted itself?

Last week I downloaded a zipfile from a website on my mac. When it finished downloading the file automatically opened (which it normally doesn’t; I would normally have to double click it first). This ...
Developer's user avatar
  • 273
2 votes
1 answer
243 views

Automatically zip attachments on Mail getting sent

How can I have a single file or several files that I dropped into an email on Mac, automatically become a zip file before getting sent?
user avatar
13 votes
1 answer
7k views

Explore contents of a ZIP/Archive from Finder? [duplicate]

I've lost count how many times I've double-clicked a .ZIP file on Mac to look inside it (like Windows) only for it to auto-extract in the current location, which is rarely my preference. Does MacOS ...
Mr. Boy's user avatar
  • 2,695
1 vote
1 answer
2k views

Compressed hidden files are not hidden anymore when uncompressing on Windows

When I zip hidden files and folder and unzip on a Windows PC, they do not remain hidden. I tried to hide them with dot and also with the command chflags hidden. Is there anything I can do? It happens ...
TryingTrying's user avatar
1 vote
0 answers
184 views

Opening/saving encrypted zip file from iOS mail app

I have a problem with opening an encrypted/protected by a password zip file from an e-mail in an iOS mail app. I can enter the preview of the file, however it is a blank page with the file name only ...
BohrT's user avatar
  • 11
21 votes
3 answers
35k views

how to open password protected 7zip archive on OSX

As the title says, I'm looking for a way to open password protected 7zip archive. I have the password but cant seem to find an application to open it. So far I have tried the following applications: ...
Kalamalka Kid's user avatar
3 votes
2 answers
2k views

How do I zip a folder using the command line while maintaining its file structure?

For example, if I want to zip /Users/admin/Downloads/Backup, and I am at /Users/admin/, I could: zip -r downloads.zip /Users/admin/Downloads/Backup and if I unzip downloads.zip I would get a Users ...
aeroxy's user avatar
  • 3,287
4 votes
0 answers
6k views

Sorry, PowerPoint can't read <file name.>.pptx error when trying to open a powerpoint autorecovery file

I was working on a powerpoint today, and then my document wouldn't let me save, and I ended up overwriting the file with a blank presentation. I don't remember the details of how that happened, but ...
Coub's user avatar
  • 41
3 votes
2 answers
787 views

How to decompress and run .app?

I'm trying to execute an AppleScript .app thats compressed. unzip -p file.app.zip | open - or open < $(unzip -p file.app.zip) Is this possible?
lily's user avatar
  • 829
0 votes
1 answer
89 views

Zipping bundle via Automator

I am looking for a way to zip a fcpx bundle with an Automator service. Automator won't accept a bundle as an input for a service (zip, rename and copy to two different locations for backup purposes), ...
jschrey's user avatar
1 vote
0 answers
78 views

Splitting Zip Files Based on Number of Files, Not Size

I'm looking to setup an automater script on my Mac. On a daily basis I'm compressing thousands of files into groups of 75 files by manually selecting the 75 and compressing them. Is there a way to ...
Dustin B.'s user avatar
4 votes
1 answer
2k views

How does macOS store Unix file permissions in ZIP files

I am trying to extract a ZIP file in Java which was created on a Mac using the built-in archive functionality of the Finder. As the ZIP file contains an application bundle, it is important to retain ...
Oliver Matuschin's user avatar
2 votes
1 answer
223 views

Create ZIP files from containing related files from multiple folders

Is there a way to automate creation of ZIPs containing files with common name elements? What I have are multiple variations of the same image: files/2250/8199print.jpg files/1200x1200/8199square....
Andertoons's user avatar
5 votes
1 answer
5k views

Simple solution to create a zip for Windows users without __MACOSX or any other "period" hidden folders

I've seen questions: How can I create a zip archive for Windows and Linux users? How to remove __MACOSX folder in a list of zip files (not a single zip file)? How can I batch zip multiple folders ...
LateralTerminal's user avatar
2 votes
1 answer
113 views

Where is the "Send to Archive" option in High Sierra

I have recently updated to Mac OS X High Sierra and noticed that there is no longer a archive or compress option in the context menu in finder. Has this feature been removed or is a there a setting ...
Imran's user avatar
  • 1,841
1 vote
1 answer
100 views

Why are zip file sizes different in finder compared to Google or Amazon Drive?

I was wondering why file sizes of my zipped archives (.zip) are inconsistent. A file that shows in the finder (macOS) as 9.17 GB shows up as being 8.54 GB on an Amazon Drive (same thing with Google ...
aris's user avatar
  • 201
120 votes
9 answers
211k views

How can I unpack .7z files via MacOS terminal?

Looking to unpack a bunch of files.7z via terminal. Is there a command-line tool built in, available or I shall install an application that comes with a graphical interface?
SuperAtic's user avatar
  • 1,421
6 votes
0 answers
537 views

Can you unzip an IPA package without either changing the extension or having admin rights?

A colleague who I admin for has just asked me why, when he wants to unzip an IPA file, the GUI archive manager asks for an admin password when he tries to decompress an IPA that he has downloaded (his ...
Rumbles's user avatar
  • 482
2 votes
1 answer
2k views

How can I batch zip multiple folders without _macosx files?

I'm wanting to zip multiple folders at the same time, where each folder is it's own zip file. I'd like to create the zip without the _macosx or any other hidden files, and if possible have the zip ...
Ryan Boles's user avatar
4 votes
3 answers
8k views

How to make and transfer secure (encrypted) ZIP files from Mac to PC

I'm trying to send my tax info securely through email or a web file transfer service like yousendit.com, dropbox.com or google drive, and created an encrypted folder containing the many image files of ...
BarbaraRoseNow's user avatar
10 votes
3 answers
21k views

How to stop the hidden __MACOSX folder from being created when compressing files/folders in Finder

When compressing files/folders in Finder, via the context menu, i.e. select the files/folders then right-click and select Compress ..., a hidden folder named __MACOSX is created within the zip archive....
Roei Hazout's user avatar