Stupid Mac Tricks
Fix for Software Update "Update could not be saved" error
I’ve occasionally had an error when installing software that goes something like “The update could not be saved… You do not have appropriate access privileges.” I’ve tried deleting the software update caches, fixing permissions, etc., all to no avail.
Well, this Apple discussion thread had the answer. You just have to delete a folder with the same name as your update from /Library/Updates. Or just delete everything, I suppose.
I had to delete the offending folder from the terminal using “sudo” for some reason. I guess it was set as root-owned or something. Weird.
Easily back up gigantic files, even with Time Machine
One place where backup programs really fail is in backing up large files. If, say, your run your VMWare machine, thus updating its disk; you add metadata to a high quality ripped DVD video; or you use Microsoft Entourage, so every time you get a new email, your giant Entourage database gets changed.
Some backup programs can handle block-level updates, so that only the chunks of the file that have changed get backed up, but most don’t.
Well, this little trick on MacOS X Hints is genius! Apple’s Disk Utility in 10.5 lets you create “sparse bundle” disk images. These are just like normal disk images, except that they break up the image itself into numerous smallish files, each one is about 8 MB.
So you can take your big ol’ file, put it into a sparse bundle, and poof! You can now handle backups and it’ll only change a handful of 8 MB files.
While the hint I’ve linked to is pretty complicated, you can just have the image and put large files on it and not worry about the rest of it. You can even just make an alias or symbolic link (type “man ls” in the terminal for a how-to) from one folder to another (yes, this does work on the “Microsoft User Data folder), rather than have a complicated script.
Note that, a few programs that generate big files offer similar features. VMWare, for example, lets you split up your VM’s hard disk image into 2 GB chunks. Not quite as minute as these sparse bundle backups, but still quite good (and probably faster, which is a must-have for a VM). Also, if you’re using FileVault, you already have a sparse bundle containing all your files on your hard drive. Nifty!
MacFUSE vs. ExpanDrive
MacFUSE with SSHFS gives you Finder-level access to your SSH and SFTP servers. It’s been out for a while and is free and open source. Now it’s being challenged by ExpanDrive, which does much the same thing, but costs $29 (at a special introductory price, no less).
So which one is better?
I’ve been using MacFUSE ever since it first came on the scene in order to access my DreamHost web server. For most tasks, I’d much rather copy a file within the Finder than open a custom client program, log into a server, and deal with upload/download target directories, external editors, etc. So MacFUSE’s SSHfs module has been an absolute dream for me.
Of course, it’s also a bit frustrating. It seems like Interarchy’s always just a bit faster at browsing my SFTP server. Copying files seems to send them back home and out to the server again, so a file duplication in the same filesystem that should take a few minutes takes ten or more! And then there’s the times that it just sort of craps out on me for some reason. Those times are rare, but they happen.
So when Daring Fireball tipped me off to Magnetk’s ExpanDrive utility, I decided to give it a try and run it through it’s paces.
The ExpanDrive developers comment that it’s based on MacFUSE, but has been variously improved with better caching and other “secret sauce.” It also handles reconnects after your computer goes to sleep, and claims to deal gracefully with poor network connections..
I gave it some straightforward tests. I opened and edited files; copied large and small files back and forth (and timed the copies); and then did my best to break things by opening disk images on the mounted SFTP drive, expanding and compressing zip files, and duplicating large files.
The results? They’re the same. Really. The same.
I got some slightly different performance on copying small files from the ExpanDrive rather than through MacFUSE if I’d already downloaded them once. This must be the caching they’ve referred to. But the difference was negligible, since it only applied to smaller files.
Both were horrid at duplicating files, and both crashed the Finder once. (It came right back with the remote SFTP drives mounted in both cases)
Now ExpanDrive is very easy to install and use, which definitely scores some points with me. But MacFUSE is no longer a horrid geeky affair to get SSHFS up and running — just a regular package installer and then an SSHFS application that loads your drive with a double-click. You can also use a utility like MacFusion to give you a nice GUI to mount drives. A bit more complex, maybe, but not bad. (MacFusion also re-mounts filesystems after your computer wakes up)
Based on my tests, I’m sticking with MacFUSE and SSHFS. Mostly I just need it as an alternative to an FTP client, and it works fantastically for that. If I were to keep the remote disk up and running all the time (a la my iDisk), then I might be more interested in ExpanDrive’s incremental improvements over the basic MacFUSE setup. (Although I could use JungleDisk — also based on MacFUSE, but using AmazonS3 instead of SFTP — to do the same thing and enjoy the cheapest online storage out there as well as the peace of mind of having all my remote files encrypted)
Regardless, it’s exciting to see all the interesting projects that have come out of the FUSE and MacFUSE projects. There’s just nothing quite like browsing your web server’s image directories using the CoverFlow view and with QuickLook readily available.
Leopard Trick: Spaces Keyboard Shortcuts
When you’re zoomed out to the “all spaces” view, you can drag and drop windows from one space to another to rearrange things. Here’s some keyboard shortcuts to improve upon this feature:
If you hold down the “Command” key while dragging a window, you will move every window of that application within the current space at the same time. (e.g. Every Safari window in the current space will move together, but Safari windows in other spaces with not)
If you do so while holding down the “Shift” key, the window you drag will move to the same location on the screen within the new space. (Especially handy for full-screen windows)
The two keyboard shortcuts can be combined to move all windows of an application to the same location in a new space.
You can also scroll through spaces using your scroll wheel or your two-finger-trackpad-skills while in the all spaces view.
As with all the zoomy eye-candy features of MacOS X, if you hold the shift key down while switching spaces or viewing all spaces, it will do so in slow motion. Oooh!
iDisk improvements in Leopard
In Leopard, iDisk syncing creates a sparse disk image for the sync instead of a standard read/write image. This has the huge advantage that your iDisk sync file doesn’t have to be 10 GB in size, but is instead only as large as it needs to be in order to hold all the files on your iDisk. Very nice.
Leopard Saved Search Irritations
Having faster and more powerful saved searches is great, but I wish they worked a little more consistently.
In the Finder, they show up in the sidebar. That’s great, they’re easy to find and access. However, they’re difficult to browse because they only show up in list or icon view. No column/browser view (my preferred way to quickly navigate folders).
Create Complex Searches in Spotlight

You can do complex boolean searches in spotlight’s search field by including parenthesis, AND, and OR statements. Unfortunately, a lot of metadata is not available via Spotlight’s keyword searches, but is available via the Finder’s search window as “Other” criteria. Luckily, you can add boolean operators using the Find window and an undocumented trick.
One-click to open folders from the Leopard dock
In the Leopard dock, any folders become annoying “stacks.” If you want to open the folder, you need to either open the stack and click the “open in Finder” button, cmd+click it and then open the now-selected folder in the Finder, or right click and select “open in Finder.” Any ability to get to a folder with just one click has been removed.
To get around this, you can make an alias of any folder and put that alias on the dock. The alias will now open with just one click.
LeoColorBar fixes your Leopard menu
MD Softworks has a fabulous little utility called LeoColorBar which fixes the transparent menu “feature” in Leopard. It’s pretty simple, and simply puts a stripe (in a color of your choice) at the top of any picture you choose, and then sets that picture as your desktop background.
It doesn’t modify the original image, but rather stores a copy in your Pictures folder called “LeoColorBarDesktopPicture.jpg” with the appropriate crop settings, etc.
Time Machine for unsupported setups
My current backup setup consists of a 160GB external hard drive hooked up to a G4/400 Cube. I’m using a combination of ChronoSync and some shell scripts to create a nice archival backup of my home folder. (I don’t bother with apps and stuff because I’m too cheap to get a larger drive.)
Now there’s Time Machine in Leopard, and I’d really rather use it. It’s fully supported, so there’s no need for scripts and hacks, plus it has some nice features with iPhoto, etc.
How I got rid of Airport's auto-connect delay
For the past few weeks, my MacBook has been slow to hook up to my home wifi network. Every time I booted up or woke my Mac from sleep, there would be a short (about 20-30 second) delay before it would properly auto-connect. It doesn’t sound like a big deal, but I have lots of scheduled apps (backups, updates, IM, etc.) and they’d all report errors or fail when they couldn’t promptly find a network connection.
Stop Firefox from downloading everything to the desktop!
Every time I download files in Firefox that I “auto process” (i.e. open with an application or whatnot), it puts the downloaded file on my desktop! This doesn’t happen at home, only at work, and never happens on my PC. Reinstalling Firefox (and extensions, themes, etc. — ugh!) didn’t fix a thing!
Well, thank you Riverside Rugby for showing me how to fix this problem for once and for all!
Great RubyOSA tutorial
Here’s a fantastic tutorial from MacZealots to get you started on automating your Mac using Ruby (instead of, say, AppleScript). If AppleScript is too hinky and irregular for you programmer types, this might be just the ticket.
Repairing a corrupse sparse disk image
I recently came upon an excellent and detailed account of how to recover a damaged sparse disk image.
I use encrypted sparse images all the time to securely store files. Sparse images have the advantage of automatically resizing as you add more files, so that you don’t have to devote a huge amount of disk space for the image until it’s really needed.
Make Google Reader look awesome
Hicks Design posted a really bitchin’ CSS file to customize Google Reader so that it’s less ugly and Google-ish looking. Works with Firefox, Safari, OmniWeb and Opera.
Bookmark with Del.icio.us