Skip to Content

Mac 101: Use Archive Utility preferences for control over archives

Most users know that you can easily create .zip files in OS X by selecting a file in Finder and choosing File » Compress "FileNameHere" or by control+clicking the file and choosing the same option from the context menu. You can open .zip (and other archive formats such as gzip, tar, and bzip2) simply by double clicking on them.

You may not have known that additional options are available. For example, after you make a .zip file, you could have the original files moved to the trash automatically, or you could have all .zip files that you create automatically saved to the same folder.

Similarly, you can have all archive files that you expand open to the same directory as the archive, or have them saved to a specific folder.

The feature that I was looking for was this: after I expand an archive, just move the original file to the trash so I don't have to, because I don't want to keep it.

If the default settings work for you, great! But if you'd like a bit more control, there are two ways to do it. (Note: these system paths are current for Snow Leopard. Previous versions of Mac OS X may be different. See note at bottom of this message.)

1) in Finder, use Go » Go to Folder to navigate to

/System/Library/CoreServices/Archive Utility.app/Contents/Resources/

and look for a file called 'Archives.prefPane'. Double click on it, enter your administrator password, and it will be installed into /Library/PreferencePanes/. (Copying it to ~/Library/PreferencePanes/ does not seem to work. You could probably also make a symbolic link, but really, the easiest way is simply to double click it.)

2) If you do not want to install the preference pane (it will be available to anyone who logs into the machine), you can set the preferences from within 'Archive Utility' itself. Just open the preferences, and you will see a window much like the preference pane shown above.

The trick is that Archive Utility usually only launches as needed, and then quits immediately. If you want to access the preferences, you'll need cat-like reflexes, or simply use Finder's Go ... Go to Folder option to navigate to "/System/Library/CoreServices" and launch it manually (LaunchBar users can also launch it by typing 'archive utility' or you can launch Terminal.app and type "open -a Archive\ Utility" to launch it.)

Being able to "fine tune" my Mac is one of the things I like the most, especially when it helps me keep free of hard drive clutter. I'm not worried about running out of hard drive space, I just try not to keep things I no longer need.

This is an update of a tip that I first learned about on macosxhints.com which is now part of Macworld.com. The tip is now somewhat out of date, but if you are using older versions of Mac OS X you might find the paths you need there.



Categories

Mac OS X

Most users know that you can easily create .zip files in OS X by selecting a file in Finder and choosing File » Compress...
 

Add a Comment

*0 / 3000 Character Maximum Comment Moderation Enabled. Your comment will appear after it is cleared by an editor.

18 Comments

Filter by:
CompGuy

Nice tip, thanks.

Now how do I get the Archive Utility to just ask where I want to save an archive every time I create one? Sometime I want it next to my files, sometimes elsewhere -- the latter especially on large archives where saving to another physical drive is far faster. Cheers!

November 27 2010 at 10:27 AM Report abuse rate up rate down Reply
TomballTX

When I double click /System/Library/CoreServices/Archive Utility.app/Contents/Resource/Archives.prefPane a dialog box comes up that reads: 'You can't install the "Archives" preferences pane because it's already installed.' Yet it isn't. I'm running Mac OS X 10.6.4

November 01 2010 at 4:21 PM Report abuse rate up rate down Reply
2 replies to TomballTX's comment
TJ Luoma

Look in /Library/PreferencePanes and make sure there isn't a file called "Archives.PrefPane" in there. If there is, get rid of it and try again. If you upgraded from Leopard there may be an old one there.

November 01 2010 at 6:46 PM Report abuse rate up rate down Reply
TomballTX

Archives.PrefPane wasn't in /Library/PreferencePanes/ but it was in ~/Library/PreferencePanes/. After I deleted it and the current version installed. Thanks, TJ!

November 01 2010 at 7:22 PM Report abuse rate up rate down Reply
bluehz+tuaw

The Archive Format dropdown menu preference doesn't seem to have any effect unless you actually USE the Archive Utility to compress files (by drag and drop onto application icon) as opposed to Finder CM. If you use the Archive Utility application then the following is supported:

Compressed = .cpgz
Regular = .cpio
Zip = .zip

I also tried using the PrefPane method and the ArchiveFormat menu had no effect that I could see.

October 22 2010 at 5:25 PM Report abuse rate up rate down Reply
smit_ralph

Nice, but it doesn't answer to problem that I haven't been able to solve yet: How do you look into an archive? Sometimes I just want to see waht's inside before I unpack it, but there is appearantly no such thing as 'show content'.... Anyone?

October 22 2010 at 7:41 AM Report abuse rate up rate down Reply
2 replies to smit_ralph's comment
TJ Luoma

I'm actually writing this up for an article later, but since you inspired me to look, I'll add it here too:

http://macitbetter.com/BetterZip-Quick-Look-Generator

follow the instructions on that page to install it.

October 22 2010 at 9:16 AM Report abuse rate up rate down Reply
smit_ralph

Thanks so much, it's brilliant! "there's an App for that", haha!
Installing took seconds, and it works perfectly!

thanks again, I am one happy camper / zipper

October 22 2010 at 3:47 PM Report abuse rate up rate down Reply
brian

Woo hoo! Thanks TUAW! Believe it or not, this solves a pretty big annoyance of mine. I work in List view a lot, with folders expanded several levels deep, and when I expand zips in a subfolder, I *hate* that it opens a new window for me. I'm already looking at it, I don't need another view of it! AWESOME! Thanks.

October 22 2010 at 12:06 AM Report abuse rate up rate down Reply
andybaird

This is very cool. But now that I have access to these settings, can somebody please explain the difference between "Compressed archive," "Regular archive," and "Zip archive"? Which is most compatible with Windows computers? (That's where most of my archives get sent.)

October 21 2010 at 8:12 PM Report abuse rate up rate down Reply
1 reply to andybaird's comment
TJ Luoma

That's a good question, and I really don't know the answer. I kind of thought "regular archive" would be a .tar file, but each option creates a .zip.

I left mine at "Compressed Archive" because that was the default.

October 21 2010 at 9:49 PM Report abuse rate up rate down Reply
Brian

Great hint... almost ten years of Mac ownership, and I had no idea about this. A little more advanced than "Mac 101" though, don't ya think?

October 21 2010 at 5:56 PM Report abuse rate up rate down Reply
Steve

Really excellent tips here. I had no idea this pref pane existed, and this is exactly how I would like it to behave as well. Thanks a lot.

October 21 2010 at 5:44 PM Report abuse rate up rate down Reply
Johnny

Thank for the tip. Although most of the defaults are fine to me, I do like having the archive automatically deleted. That will save a few steps down the line.

You don't need cat-like reflexes or anything of the sort. All you have to do is launch the Archive Utility from CoreServices and it will stay open like any application. Then change the prefs and close the app when you are done.

October 21 2010 at 5:36 PM Report abuse rate up rate down Reply
adam gordon

I didn't know about this either. I had to navigate to the directory in Terminal and then type "open Archives.prefPane" because Finder doesn't treat .app directories as directories.

October 21 2010 at 5:16 PM Report abuse rate up rate down Reply
2 replies to adam gordon's comment
Jonathan A

"I had to navigate to the directory in Terminal"

I also used Terminal just because I found it more convenient, but you can get there from the Finder. From the Finder, right-click (or ctrl-click) on Archive Utility and select "Show Package Contents" from the pop-up menu.

October 21 2010 at 7:53 PM Report abuse rate up rate down Reply
devyn

You can also copy and paste the path above into Finder's "Go to Folder" window, as TJ (almost) says.

1) in Finder, use Go » Go to Folder to navigate to

/System/Library/CoreServices/Archive Utility.app/Contents/Resources/

:)

October 22 2010 at 3:09 AM Report abuse rate up rate down Reply
Buy an ad here

Tweets

© 2012 AOL Inc. All Rights Reserved.