Automatically Delete .DS_Store And Other Files From Thumb Drives

If you trade a USB thumb drive, hard drive or other portable storage between Mac and Windows systems, the .DS_Store, .Trashes, and other starts-with-a-dot files left behind by Macs can get annoying. This script automatically wipes away those left-behind files.

Image via WeLoveMac.net.

MacWorld’s OS X Hints section suggests modifying the default umount script, such that it automatically searches out and wipes away any traces of Mac-only functionality from drives when they’re ejected or unmounted from the system. It takes a small bit of Terminal work, but the results could pay off long after your work is done. Two catches, though: updating your system to a new OS version may wipe this change away, and if you actually want other types of hidden files (named with a period as their first character), this script will automatically wipe those, too. Still, both are pretty niche concerns, compared with the annoyance some may find with unwanted files cluttering their drives.

Automatically delete Mac OS X dot files from MS-DOS filesystems [MacWorld]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


Leave a Reply