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
3 votes
1 answer
226 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 ...
user avatar
1 vote
1 answer
89 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 ...
user avatar
  • 125
1 vote
1 answer
70 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 ...
user avatar
  • 11
0 votes
0 answers
64 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 ...
user avatar
  • 1,031
5 votes
1 answer
380 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 ...
user avatar
  • 632
2 votes
2 answers
148 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 ...
user avatar
  • 1,110
1 vote
2 answers
1k 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/ ...
user avatar
  • 111
0 votes
2 answers
292 views

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

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?
user avatar
0 votes
1 answer
1k 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' ...
user avatar
3 votes
1 answer
202 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?
user avatar
  • 241
1 vote
0 answers
188 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 ...
user avatar
  • 11
0 votes
1 answer
71 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" &...
user avatar
1 vote
1 answer
83 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'...
user avatar
  • 123
3 votes
2 answers
638 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 ...
user avatar
  • 155
0 votes
0 answers
153 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 ~/...
user avatar
  • 113
0 votes
0 answers
29 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.
user avatar
0 votes
1 answer
984 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, ...
user avatar
  • 137
0 votes
0 answers
159 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 ...
user avatar
  • 113
0 votes
1 answer
714 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 ...
user avatar
  • 1,685
1 vote
1 answer
117 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 ...
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....
user avatar
0 votes
1 answer
306 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 ...
user avatar
  • 273
2 votes
1 answer
130 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
10 votes
1 answer
5k 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 ...
user avatar
  • 2,301
1 vote
1 answer
1k 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 ...
user avatar
1 vote
0 answers
140 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 ...
user avatar
  • 11
18 votes
3 answers
19k 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: ...
user avatar
1 vote
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 ...
user avatar
  • 3,042
4 votes
0 answers
5k 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 ...
user avatar
  • 41
3 votes
2 answers
459 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?
user avatar
  • 711
0 votes
1 answer
86 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), ...
user avatar
1 vote
0 answers
58 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 ...
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 ...
user avatar
2 votes
1 answer
192 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....
user avatar
5 votes
1 answer
4k 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 ...
user avatar
2 votes
1 answer
106 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 ...
user avatar
  • 1,631
1 vote
1 answer
23 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 ...
user avatar
  • 191
107 votes
9 answers
174k 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?
user avatar
  • 1,291
6 votes
0 answers
419 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 ...
user avatar
  • 170
2 votes
1 answer
1k 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 ...
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 ...
user avatar
9 votes
3 answers
13k 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....
user avatar
6 votes
1 answer
7k views

How to pass path of selected file from Finder to Automator Shell script

I am creating Automator Service to unzip selected files in the same folder they are located. How can I get selected file absolute path in Automator, so I can pass it into my shell script ? As you ...
user avatar
  • 163
39 votes
2 answers
56k views

How can I run unzip silently in terminal?

I have a lot of Zip archives that I want to unpack in a script. Is there any way to run them silently? Here is what I have: bash> unzip 02b852e3571e46f25fdfc79f43ceb726ddff9ba7.zip Archive: ...
user avatar
  • 513
-3 votes
1 answer
146 views

How do you Unzip a folder into “C:\…\arduino-1.0.4\arduino-1.0.4\hardware

I have been working on making my Arduino pro micro work, and i have been following a few tutorials https://coytar.wordpress.com/2013/04/27/use-arduino-uno-as-an-avr-isp-to-burn-the-bootloader-to-a-...
user avatar
0 votes
1 answer
3k views

Program Icons bounce, but won't open on Apple MacBook Pro [closed]

I just got an Apple MacBook Pro that is 5 years old and I have no idea how to use it or if something is wrong with it. I have 10.9.5 and it's supposed to be compatible and it didn't work. Since then, ...
user avatar
2 votes
3 answers
1k views

Terminal - Is the built in zip command lossy?

I'm using BASH in the terminal on Yosemite. Is the zip command lossy? I'm using it like this zip -er ./output.zip ./input -e encrypt -r recurse I am trying to avoid lossy compression when ...
user avatar
1 vote
1 answer
81 views

Help creating zip files with 50 files in each

I have a folder containing 7.000 images that needs to be zipped into zip files containing only 50 files each. Any way of doing this automatically? Any script, Automator workflow, batch whatever would ...
user avatar
3 votes
1 answer
3k views

Why does .tar.gz automatically extract the GZip archive when I download it in Safari?

I downloaded a .tar.gz archive backup of a website. Every time I download it, when I click the magnifying glass in Safari Downloads, it takes me to the file, but it's now just a .tar, and so is ...
user avatar
  • 131
5 votes
2 answers
626 views

MacOS dmg file question

Not entirely sure if this is where to ask this, but I can't find another place to... I've recently switched from Windows to Mac and I am trying to understand more in depth what I'm working with. My ...
user avatar
  • 113