Hands-On Mac 173 transcript
Please be advised this transcript is AI-generated and may not be word for word. Time codes refer to the approximate times in the ad-supported version of the show
0:00:00 - Mikah Sargent
Coming up on Hands-On Mac, let's take a look at a very important tool on your Mac called the Archive Utility. Stay tuned.
0:00:11 - Leo
Podcasts you love From people you trust. This is Twit.
0:00:30 - Mikah Sargent
Welcome, or welcome back to Hands-on Mac. I am Micah Sargent, and today we are taking a look at a tool that you may have used without realizing it. It is a tool called Archive Utility and it helps you compress and uncompress or decompress files that you have on your Mac. Now, there are different ways that this tool can work and, again, many of them kind of happen in the background. So we're going to take a look at how to use the tool on its own and actually opening it up and making use of the different files and formats that are part of the archive utility. So let's head over to macOS and take a look. Here we are on macOS and, first and foremost, we can go into a directory like this example folder that we've had for quite some time and, let's say, we're trying to save some space. We've got some files that exist that are taking up a lot of space. Now, if you're working with compressed files, like a JPEG, for example, those files will probably not be able to be made smaller with compression. The way the compression works is it kind of looks for different repeats in the code and creates kind of a shorter reference. So let's say, for example, you have and this is a very sort of high level not precise example. But let's say the compression algorithm looks through the data that makes up a file and sees that there's a bit of repeat in the code A-A-A-B-B-B-C-C-C and it maybe comes up again later in the code A-A-A-B-B-B-C-C-C. It can take that bit of data and make it smaller and say that A-B-C, when that comes up should be when it's decompressed, turned back into A-A-A-B-B-B-C-C-C, and so then you don't have as much of that repeat in the code. It's kind of shrinking it down and referencing to the fact that it is actually a larger bit of data. When you have files, though, that are already compressed, like a JPEG file, it's already done that in the code. It's removed the redundant parts of the code and made that file smaller. So in some cases when you archive a JPEG, the archive might end up being actually bigger than the actual JPEG outside of that archive.
So let's go through here and look at some of the different formats. We've got an EPUB. We've got a keynote presentation, a numbers presentation and a couple of PDFs. I will select those and I will right click and choose compress. When I choose compress it uses the archive utility to create a dot zip archive. Now if we select those again I think it was these plus that keynote presentation and the EPUB and we come up to the view and show the status bar, we can see that we've got six of these files selected. There we go, and it's 34.6 megabytes. The zip archive is down to 33 megabytes, so it has saved some space. Now it's important to understand that when you select these files and use that right click menu to choose to compress the files, it's always going to create a zip archive. A zip archive is a very standard kind of compression format. It's been used for years across different platforms and is kind of the well-known method of zipping, of making files smaller.
There are different types of archive options and only some of them are presented to you with the Archive Utility. So let's talk about how we gain access to the Archive Utility. Simplest way is simply to hold down the command key on your Mac and hit the spacebar to bring up Spotlight and start to type in archive, at which point you will probably see archive utility pop up. We can open up archive utility and you'll notice that there's no UI. Instead, there's only a bar at the top of the screen and at the bottom of the screen or wherever you happen to have your launch bar, it will show you the Archive Utility icon, which is a green folder, in this case with the zipper in the middle of it. Now here's what we want to do. We want to go up to Archive Utility and click on it in the menu bar and choose Settings. From here we can see the different options that are made available to us. So let's go down the list. The first option says save expanded files, and this is a choice of where.
When you use the archive utility and this is where I was talking before about how you may use it and you didn't realize it by default, safari has a feature enabled that says essentially, open safe files, and if you've watched my episodes on Safari, you'll know that I told people to turn that off. I still hold to that, but for some reason, safari considers zip files to be safe files, which means that in the background, when you download a zip file, it will go ahead and open, it will expand that zip file and that's archive utility working in the background. So that is one way that it may be. You may be using it and you didn't realize that you were. Now you're telling archive utility where you want to save the expanded files, the files that are coming out of the archive. You can say I want them to be in the same directory as the archive, which would mean that if I double clicked on archivezip to run archive utility, it would expand all of those files into this same directory, which is example. I can choose to have it go into a specific place. So you'll see it's in two and three dots and that says choose a place that you want the archive, the expanded files, to be saved, so this will always put them in that place. So maybe you have a folder in your documents folder that you want to say is the place where expanded files always go. That's what you would choose here and then any time you do an expansion it'll go there by default. Again it goes into the same directory. That's what I use, that's what many people use, because then it's right there.
Then you tell Archive Utility what you want it to do after you have expanded that archive. By default it leaves the archive alone, meaning that the archivezip is still there. You can say you want it to go to the trash. So I've expanded the archive, I don't need the archive anymore. Put it in the trash so that I can make the choice to delete it or keep it or just go ahead and delete it entirely. Don't move it to the trash for me to remove later. Go ahead and just delete it, get rid of it entirely.
And then the last option is to move the archive to, and again it's got the three dots, meaning that you can choose where the archive goes. So maybe, instead of having the expanded files go to a specific location, maybe you just want to place on your Mac where your different zip archives or whatever archives you might have are automatically placed, so that you can get to them later if you need them. That's when you would choose that. The next option says reveal expanded items in the Finder. This is particularly helpful if, when you chose save expanded files and you chose a specific directory to have this selected, because what it means is Finder will pop open and show you the place where those files were expanded. Of course, if you have it expanded to the same directory as the archive, they're all going to be in that same place already and it'll be fine.
The next option is called keep expanding if possible. Certain types of archives can actually have archives within them, so it's sort of a Russian nesting doll of a situation. So this tells Archive Utility. When you're expanding the main archive, if you find an archive within, expand that too and expand and expand and expand as many archives as you find. I recommend keeping this enabled by default.
The next section is for actual archives that you are creating. So where above we chose how to sort of de-archive, how to expand an archive, the next set is creating them. So save archive. You can say, hey, when I select those files and I right click and I choose compress, do what you saw earlier, which is the archive gets saved to the same place as the files that we were trying to archive. You can then also choose a specific place. So, again, if you have a folder that you specifically want to use as your archive, you can do that. The next option says use archive format. You can do that. The next option says use archive format and we're going to come back to this one because it's a little bit more involved and we'll talk about each of the options that are available to you.
And then, after archiving, what do you want it to do? The files that I selected, leave them alone. Leave them there, don't touch them. Move the files that I've archived into the trash, because now I've got an archive of those files or delete the files completely. So it works the same as what we talked about before, where don't even move them to the trash to be sort of adjusted later. Go ahead and get rid of them or move files to, and of course, that lets you choose a place on your Mac to move those files, so that the archive is in the place where you put it and those files that you selected go to where they need to go. And then, of course, you can choose whether to reveal the archive in Finder. So if you have that archive moved to a specific place, you probably want to select reveal archive in Finder so you know that the archive was created and placed where you would expect it to be placed.
So let's talk about the most important section, which is use archive format. And the first thing I want you to understand is that when you change this, it will not make a difference to the context menus option of compressing. So what I mean by that is, if I select some options here, as we did before, I right click and I choose compress, that compress option is always going to create a zip archive. It's not going to create any other type of archive, so just keep that in mind. Now let's talk about the different options that we have available to us.
Now a compressed archive by default is actually not what you would expect. You're probably thinking that that means a zip archive, but no. Instead, a compressed archive is a cpgz archive, and this is a type of archive that starts by creating a sort of set of files in one file. So think of it like a briefcase. I open up the briefcase and I put a bunch of files into it and I close the briefcase. That is a regular archive, meaning we didn't do any type of compressing to it. But if we want that archive to be compressed, then we choose this compressed archive. What it does is it takes that briefcase and kind of shrinks it down, so it runs a compression algorithm on it to make it even smaller. So with that we have the file format that's called CPIO and that will make the sort of basic archive. And then CPGZ is the archive that's created using a type of compression that's a little bit different from zip. So what does this mean? It's a lot right. Compressed archive is going to put them in the briefcase and make them smaller, but it's going to be saved again as CPGZ. But how do you actually create a CPGZ archive if when I select files here, it always makes a zip and you can see this has compressed archive chosen. So obviously it's not creating that. Whenever I right click to choose compress, it's always going to do zip.
We go up to file while archive utility is in focus and we choose create archive. From here we can go to our desktop, we can choose the example folder. And here's the important part. Watch what happens when I try to select multiple options here. I'm holding down the shift key and I'm trying to click on other things to select multiple options and you can see I'm not able to. That is because with this compressed archive format, it works on a directory or it works on an individual file, meaning for us it works on a folder or it works on an individual file. So the first thing we need to do is select the files that we want to put into this compressed directory and right click and we'll choose new folder with selection and we'll call this CPGZ files. And then what I'm going to do is actually take all of these files and hold down the option key while I drag them to make a copy of them back in the main directory. Now we've got them in the cpgz files section and we'll choose. While archive utilities open, create archive. We'll choose cpgz files, that directory, that folder, and choose archive. Now you can see ta-da, we have successfully created a cpgz files archive, which comes in at 34.4 megabytes and the original folder is 34.6. So it did save some space.
The next option in archive utility, after CPGZ, also known as compressed archive, is regular archive. This is the briefcase, without anything done to it. This is just how you take a bunch of files and make them into one thing. So if you're just trying to move things, move files to a different place and you don't want to deal with having multiple files all at once, but you don't need any compression, a regular archive which has the file extension CPIO is what you're doing there. Again, cpgz is just a CPIO archive that is then acted on to help compress it. The next option is Zip, which you are very familiar with already, so you know what that one is. And the next option is Apple Archive.
So let's take the CPGZ files folder and we are going to call this AAR and we will reselect archive utilities. We've got Apple Archive selected. We'll choose file. We'll choose create archive and now we will select AAR files. Again, you can't select individual files here, it won't let you. You have to do a directory or a specific file files here it won't let you. You have to do a directory or a specific file. Now, this is going to do a compression of directories, of files, of data, and it does this using what is available on your Mac in terms of performance. It's a multi-threaded compression. So once we select this, we've got that AAR files option and, importantly, you can see 34.6 megabytes. 34.6 megabytes AAR files has no compression on it at all. And then, last but not least, so again much like the regular archive. This is a briefcase with an Apple logo on it.
It puts all of those files together with what's called lossless compression and has them all available to you right there in that one spot. And then Apple Encrypted Archive is a ER and it does this very similarly to the Apple Archive but also provides an encryption. So we will change this to AER like. So we will go to Archive Utility, we'll go up to File, we'll choose Create Archive and we will select AER Files and and choose archive, and you'll notice that it automatically creates a password that is encrypted and gives you the ability to store it in your keychain. I recommend doing that if you don't have a password manager, otherwise, a password manager is another option here and we'll choose encrypt. So it encrypts the files and then stores them in this aea file format, and in this case you'll notice that there was some space saved. So, encrypting it and compressing it, it was able to create that archive and save 2.2 megabytes. Those are the different options that are available to you and, importantly, because I am on this Mac and because that password was saved to my keychain, I can simply double click on this and use my Touch ID to access the password in my keychain and be able to open it up. And I'm going to go ahead and move that to trash, as well as the AER files, to kind of get it back to the different options that are available here.
Now, once again, I want to remind you that choosing anything in this archive format option does not change what that standard compression does. That standard compression is always going to be zip because of the kind of full nature of zip as a compressed archive that is available for use on different machines. Whether you're on Linux or you're on Unix, or you're using Windows or you're using Mac OS, you're going to be able to act on a zip archive. Last but not least, if you want to, you can also go up to file and choose expand archive and select an archive to have that expand. But the same thing is done by simply double clicking on one of these archives and having the archive utility automatically act upon it.
So that is an overview of the archive utility on macOS. I think you'll find that it's actually a rather powerful tool that you can use to be able to save space on your Mac and transfer multiple files at a time to different machines, or to store on a flash drive or whatever it happens to be. It is a tool, that kind of hides behind the operating system, and so being able to go in and use it is kind of fun, I think. So I hope you enjoyed this episode of Hands on Mac and of course, I'll be back next week with another episode for you. Until then, always be sure you can reach out Micah at twittv to get in touch. Thanks, and I'll see you next week. Bye-bye.
0:20:12 - Leo
Hey, buddy, are you a geek? Are you a tech enthusiast? Then I would love to invite you to join a tech community like no other. You can gain exclusive access to our incomparable quality tech content for just $7 a month with Club Twit. As a member, you'll enjoy all Twit TV shows, ad-free Plus access, private video feeds for insider shows like iOS Today Home Theater Geeks, and so much more. Dive into the members-only Twit Plus bonus feed for behind-the-scenes content, club discussions and special events. But here's the best perk Join our incredible Discord community to watch live show productions, chat with hosts and participate in exclusive members-only activities. It's your backstage pass to the world of Twit. Whether you're a tech enthusiast or a lifelong learner, club Twit elevates your knowledge while entertaining your interests. Get two weeks free when you sign up now for $7 a month and unlock unparalleled access at twittv slash club twit. That's twittv slash club twit and, from the bottom of my heart, thank you and welcome to the club.