Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
24
votes
3
answers
48829
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: - Zipeg - Stuffit Expander - 7zx - ExpressZip - The Unarchiver I would prefer any free applications o...
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:
- Zipeg
- Stuffit Expander
- 7zx
- ExpressZip
- The Unarchiver
I would prefer any free applications or solutions if possible
Running OS 10.6.8
Kalamalka Kid
(1428 rep)
Nov 23, 2018, 03:48 AM
• Last activity: Jul 23, 2025, 08:57 AM
9
votes
2
answers
14231
views
Large zip files created in OS X cannot be opened in Windows
When I compress a large directory in OS X, like 5-6 GB the resulting archive cannot be browsed in Windows / Total Commander. It hangs the app and stays at 100% cpu usage, like its trying to extract it or something. Does anybody know whats causing this? Smaller zips that have like 2-3 GB can be brows...
When I compress a large directory in OS X, like 5-6 GB the resulting archive cannot be browsed in Windows / Total Commander. It hangs the app and stays at 100% cpu usage, like its trying to extract it or something. Does anybody know whats causing this? Smaller zips that have like 2-3 GB can be browsed instantly.
ktie
(91 rep)
Dec 26, 2015, 07:15 PM
• Last activity: May 1, 2025, 09:09 AM
0
votes
1
answers
141
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 folders for each senior photographed. Those subfolders contain multiple files and a sub_sub_ folder named...
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 folders for each senior photographed. Those subfolders contain multiple files and a sub_sub_ folder named
The folder structure looks like this:
The jpg folder has a space in front of the name
This is way beyond my limited scripting capabilities - any help is greatly appreciated.
jpg
(whitespace prefixed). I need to zip the files that are inside each jpg
folder, so it ends up containing the zip file plus the original .jpg files. The folder structure looks like this:
main # Format SR_yyyy_mmm_dd
├── Senior1 # Format LastName_FirstName_ScoolCode
│ ├── \ jpg # NOTE: whitespace as a prefix
│ │ ├── one.jpg # All jpgs in that folder have to be zipped
│ │ └── two.jpg # as "main/Senior1/ jpg/Senior1.zip"
│ ├── one.CR2
│ ├── three.CR2
│ └── two.CR2
└── Senior2 # Format LastName_FirstName_ScoolCode
├── \ jpg # NOTE: whitespace as a prefix
│ ├── one.jpg
│ └── two.jpg
├── one.CR2
├── three.CR2
└── two.CR2
There can be 50 or 60 Senior folders in the main folder for each day. The jpg folder has a space in front of the name
This is way beyond my limited scripting capabilities - any help is greatly appreciated.
JBS
(41 rep)
Oct 28, 2022, 02:17 PM
• Last activity: Dec 18, 2024, 03:03 AM
40
votes
12
answers
26316
views
Is there any Mac software to handle archives (zip, rar, 7z, tar, etc.) that allows browsing?
I am looking for a software to handle archives on OS X. I know there are many of them quite easy to find, but none seems to have the most basic feature that most Windows archive applications have: browsing! I mean, most OS X unarchivers, when they open an archive, they just unzip it... then ask you...
I am looking for a software to handle archives on OS X.
I know there are many of them quite easy to find, but none seems to have the most basic feature that most Windows archive applications have: browsing!
I mean, most OS X unarchivers, when they open an archive, they just unzip it... then ask you for target location in the best case.
What I want is something such as WinRAR or 7zip, which is basically an explorer (ie. Finder) that opens archives.
What I want is precisely this! I want to be able to browse any archive without extracting it, opening files directly from the archive and then be able to modify it so that the file is *actually* modified in the archive.
I want to be able to drag'n'drop a file to and from an archive to extract/add it.
Those features are so useful when modifying directly JAR files contents, JAR files MANIFESTs, war webapps conf-files and so on...
Thank you.
ptpdlc
(953 rep)
Jul 2, 2011, 05:01 PM
• Last activity: Aug 16, 2024, 08:27 AM
0
votes
0
answers
44
views
Can I modify my zip so iOS won't auto unpack it on download?
I maintain a free tool to produce books in DAISY format for the blind. One of the more widely-used DAISY reader programs is Dolphin EasyReader which has an iOS version. When "side-loading" a book into EasyReader (rather than obtaining it from a library listing), the user needs to point EasyReader at...
I maintain a free tool to produce books in DAISY format for the blind. One of the more widely-used DAISY reader programs is Dolphin EasyReader which has an iOS version. When "side-loading" a book into EasyReader (rather than obtaining it from a library listing), the user needs to point EasyReader at a ZIP file (with
.zip
extension) containing the DAISY book. Pointing EasyReader at an unpacked folder does not work.
When blind users download a DAISY book produced by my tool, if they're on iOS, their device automatically unpacks the zip file into a folder. That causes confusion, because EasyReader needs to be given the *non*-unpacked .zip
file.
Currently, I add a file called 0000.txt
containing my message about how if they're having trouble launching it in EasyReader then they should go up one level and find the original .zip
file rather than the unpacked folder. But this was (a) hard to write without it looking like I'm disrespecting their operating system, (b) even harder to write in lots of different languages other than English and (c) still requires the user to take extra steps.
I know Apple devices can be configured on the user side not to auto unpack .zip
files, but rather than tell my users to change their settings, I'd much rather set something on my side if possible. Is there *anything* I can do to the zip file that says "hey iOS, if you're seeing this, please don't auto unpack this particular zip file" (but without actually corrupting the zip file because EasyReader still needs to unpack it)?
(I'm unsure from the user reports whether the auto extraction is being performed by Safari or by Files. Either way, I'd like to stop it because in this particular case it's not helping. Unfortunately it doesn't seem to be an option to change the extension as .zip
is required by most DAISY readers.)
Silas S. Brown
(146 rep)
Aug 14, 2024, 06:32 PM
0
votes
0
answers
151
views
How to create a multi-part archive from a folder?
I have a large folder (1.8 million files, 40 GB on disk) that I want to archive for easy transfer. I can zip the folder using ditto like so: ```bash ditto -c -k --sequesterRsrc --keepParent 2-experiment-logs 2-experiment-logs.zip ``` And I cannot split the archive using zip like so: ```bash zip 2-ex...
I have a large folder (1.8 million files, 40 GB on disk) that I want to archive for easy transfer.
I can zip the folder using ditto like so:
ditto -c -k --sequesterRsrc --keepParent 2-experiment-logs 2-experiment-logs.zip
And I cannot split the archive using zip like so:
zip 2-experiment-logs.zip --out 2-experiments-logs-split.zip -s 1024m
Because I get an error like so:
zip warning: unexpected signature on disk 0 at 551121334
zip warning: archive not in correct format: 2-experiment-logs.zip
zip warning: (try -F to attempt recovery)
zip error: Zip file structure invalid (2-experiment-logs.zip)
How to fix this issue? Is there a way to create a split archive directly, without creating the monolithic archive as an intermediate step?
https://ss64.com/mac/ditto.html
Bengt
(101 rep)
Aug 14, 2024, 06:15 PM
0
votes
1
answers
95
views
unzip specific folder/files of a damaged .zip
I had a crash a couple of years ago which resulted in a recovery from Backblaze (at the time). I have just discovered I didn't fully recover. I still have 3 zips, I only need parts of. This is an example from zipinfo: ```none -rw---- 4.5 fat 32952031 bX defN 22-Jun-30 19:23 OWC MiniStack/Music/Tom W...
I had a crash a couple of years ago which resulted in a recovery from Backblaze (at the time).
I have just discovered I didn't fully recover. I still have 3 zips, I only need parts of.
This is an example from zipinfo:
-rw---- 4.5 fat 32952031 bX defN 22-Jun-30 19:23 OWC MiniStack/Music/Tom Waits/Mule Variations/03. Waits Tom - Hold on.m4a
They're all CD rips.
How would I unzip specific subfolders of the whole zip (i.e. /Tom Waits/
)?
The whole zip is:
fritzs-mac-pro_2022.4.2_8-15-20-30-13 - T
Fritz
(31 rep)
Feb 19, 2024, 06:26 PM
• Last activity: Jul 19, 2024, 11:50 PM
128
votes
10
answers
245276
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?
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?
Eyes don't Lie
(1501 rep)
Nov 29, 2017, 10:32 PM
• Last activity: Jan 19, 2024, 11:45 PM
1
votes
0
answers
2973
views
Inappropriate file type or format when open a zip file
When I tried to unzip a zip file in macOS 13.3.1, it shows an error like this: [![enter image description here][1]][1] I have tried to unwrap this file using unzip command: > file file.zip file.zip: Zip archive data, at least v2.0 to extract, compression method=deflate > unzip file.zip Archive: file...
When I tried to unzip a zip file in macOS 13.3.1, it shows an error like this:
I have tried to unwrap this file using unzip command:
> file file.zip
file.zip: Zip archive data, at least v2.0 to extract, compression method=deflate
> unzip file.zip
Archive: file.zip
error [file.zip]: missing 332593792 bytes in zipfile
(attempting to process anyway)
error [file.zip]: attempt to seek before beginning of zipfile
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
Am I missing something? what should I do to fixed this issue? this is the zip file info:
> ls -alh file.zip
-rw-r--r--@ 1 xiaoqiangjiang staff 241K Jan 1 19:47 file.zip

Dolphin
(1275 rep)
Jan 1, 2024, 11:53 AM
• Last activity: Jan 1, 2024, 04:08 PM
3
votes
2
answers
3779
views
How to convert non-utf8 encoding to utf-8 encoding during unzip?
I have the same problem which described [here](https://superuser.com/questions/872596/decompress-zip-with-given-encoding). 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 won't be readable at all. I...
I have the same problem which described [here](https://superuser.com/questions/872596/decompress-zip-with-given-encoding) .
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 won't be readable at all. I need to convert the encoding to utf-8 during unzip.
I tried the command
unzip -O GB18030 gb18030.zip
which does not work on MacOS. I think it might because the unzip command in MacOS does not have the option -O
.
sgon00
(2526 rep)
Sep 4, 2019, 05:35 PM
• Last activity: Oct 19, 2023, 07:52 AM
1
votes
0
answers
719
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 iPhone, just archive them. I tried doing an AirDrop transfer of the whole folder, but that...
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 iPhone, just archive them.
I tried doing an AirDrop transfer of the whole folder, but that didn't work. Next I tried zipping the folder, but that didn't work either. What I mean specifically by "didn't work" is that after tapping 
Then...
I don't want to try to open those files with QuickText. I simply want to save them to a folder.
What can I do instead to accomplish the archiving of the folder (or .zip) onto the iPhone?
macOS 12.6, iOS 14.8
Accept
on the iPhone, instead of being allowed to choose a save location, I am only prompted to choose an app to open the files with. Like this:
AirDrop
-
Open with...
Cancel
QuickText
Update (adding screenshots):

Then...

Mentalist
(1360 rep)
Sep 7, 2023, 08:39 AM
• Last activity: Sep 7, 2023, 09:16 AM
2
votes
2
answers
2294
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 the operation because some data in “” can’t be read or written. (Error code -36) I've tried * rest...
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 the operation because some data in “” can’t be read or written. (Error code -36)
I've tried
* restarting finder
* restarting the computer
* shutting down and then re-opening the computer
* checking file and folder permissions (both read and write)
* showing hidden files, none show up
* running
dot_clean
command
Both errors persist and only apply to folders (copying/zipping files is fine). I have no idea/direction on how to solve them. I can only think it could be related to having recently changed my Apple ID password. The Terminal zip
command works fine on both folders and files.
Pollastre
(21 rep)
Feb 11, 2023, 02:16 PM
• Last activity: Jul 7, 2023, 09:03 PM
3
votes
2
answers
3309
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 folder and have a Users => admin => Downloads => Backup structure. This is particularly undesir...
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 folder and have a Users => admin => Downloads => Backup structure.
This is particularly undesirable behavior if I want to create an installation zip file for TWRP.
So instead I will have to:
cd /Users/admin/Downloads/Backup; zip -r /Users/admin/downloads.zip .; cd /Users/admin/
This doesn’t feel like what a pro would do.
What can I do to zip a folder while maintaining its file structure?
aeroxy
(3367 rep)
Nov 10, 2018, 01:54 PM
• Last activity: May 13, 2023, 08:07 PM
0
votes
0
answers
1151
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 the directory of the file: for f in *.zip; do zip -d "$f" "__MACOSX*"; done I need to implement the...
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 the directory of the file:
for f in *.zip; do zip -d "$f" "__MACOSX*"; done
I need to implement the search command and combine it with this one.
Thanks in advance.
Milodoc
(1 rep)
May 1, 2023, 12:29 AM
0
votes
1
answers
136
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 the print statements I can add the -q flag zip -q -FF TEST.zip --out TEST_fixed_quiet.zip But the resu...
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 the print statements I can add the -q flag
zip -q -FF TEST.zip --out TEST_fixed_quiet.zip
But the resulting file is empty:
$ unzip -q TEST_fixed_quiet.zip
warning [TEST_fixed_quiet.zip]: zipfile is empty
This is not the expected behavior for the -FF flag. Zipping TEST.zip with -FF and without -q yields the correct non-empty archive. Zipping TEST.zip with -F and -q yields the correct non-empty archive.
So how can I zip a file quietly with the -FF flag and without destroying it in the process?
mqjg
(1 rep)
Feb 23, 2023, 06:31 PM
• Last activity: Feb 23, 2023, 07:56 PM
5
votes
1
answers
2356
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. Is there a way to prevent this from happening?
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. Is there a way to prevent this from happening?
Pavel Orekhov
(681 rep)
Jul 10, 2022, 01:29 AM
• Last activity: Jul 10, 2022, 04:34 PM
1
votes
0
answers
878
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 files I require which don't contain any data so I need them. I am able to compress the same folde...
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 files I require which don't contain any data so I need them.
I am able to compress the same folder within my internal hard disk with no problems. I am using a Mac m1 max with Monterey 12.4.
I have tried it with the p7zip tool from 7zip.com and it works. It just doesn't work with the native compression tool.
anarchy
(170 rep)
Jun 5, 2022, 09:33 PM
• Last activity: Jun 5, 2022, 10:00 PM
3
votes
1
answers
535
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 a parent.*) on run {input, parameters} tell application "Finder" set theItems to selection repeat w...
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 a parent.*)
on run {input, parameters}
tell application "Finder"
set theItems to selection
repeat with i from 1 to (count of theItems)
set theItem to (item i of theItems) as alias
set itemPath to quoted form of POSIX path of theItem
set fileName to name of theItem
set theFolder to POSIX path of (container of theItem as alias)
set zipFile to quoted form of (theFolder & fileName & ".zip")
do shell script "zip -jr " & zipFile & " " & itemPath
delete (item i of theItems)
end repeat
end tell
return input
end run
By testing it with a simple folder and a few random files, the script works fine. But when the folder contains a lot of files, the following error pops up:
> 'zip warning: first full name: /Users/laurens/Desktop/Test folder/.DS_Store
second full name: /Users/laurens/Desktop/Test folder/story_content/.DS_Store
name in zip file repeated: .DS_Store
this may be a result of using -j
>
> zip error: Invalid command arguments (cannot repeat names in zip
> file)'
I checked the same folder on Windows (through Parallels), and I can't see any .DS_Store files, also I'm not sure why the script refers to those files instead of the folders...
I'm not sure what to make of this.

LauLauPeet
(41 rep)
May 2, 2022, 09:37 AM
• Last activity: Jun 2, 2022, 09:47 AM
0
votes
2
answers
885
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?
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
(1 rep)
Nov 26, 2020, 12:13 AM
• Last activity: May 20, 2022, 06:00 PM
1
votes
2
answers
1262
views
Automator: Archive a folder, whilst excluding certain files
I am trying to create an automator based workflow whereby I create archives of folders but exclude certain files from the final archive. I would also like to specify the files or folders to exclude (e.g. ".cvs" or ".git" or ".psd" etc). Here's how I have currently tried to do it, but cannot get step...
I am trying to create an automator based workflow whereby I create archives of folders but exclude certain files from the final archive. I would also like to specify the files or folders to exclude (e.g. ".cvs" or ".git" or ".psd" etc).
Here's how I have currently tried to do it, but cannot get step2 below working:
1. I specify a folder to scan and archive.
2. Automator/script recursively filters out certain files which I can specify (e.g. ".cvs" or ".git")
3. Automator creates an archive of the remaining files from step2.
Im certain there must be an easy way of achieving this with automator - any assistance would be appreciated.
mozami
(113 rep)
Apr 8, 2011, 03:23 PM
• Last activity: Apr 24, 2022, 01:53 PM
Showing page 1 of 20 total questions