My car stereo can use USB flash drives to play music from, so I asked about Copying MP3s from an iTunes playlist. That was all fine and dandy, except my stereo wouldn't play the MP3 files. I eventually put the flash drive into my work computer running Windows 7, and I found the issue: A bunch of hidden files starting with ._filename.mp3 were also loaded. I know in Windows you can DEL files based on attributes, and I was wondering if you can do the same in Terminal? Possible with a script that I can run with the Volume as a parameter?
feedback
|
|
These files are hidden in OS X because they start with A very simplistic approach would be to delete all files that start with a dot and an underscore:
Safety note: Run that without For some additional information: These files are called "Resource Forks" and sometimes contain information you don't want to delete. In your use case, that should be fine though. You can permanently disable the creation of these files using BlueHarvest. There's also an app that claims to clean volumes of them, but I haven't tried it and it's beta, so use with caution: Hidden Cleaner. | ||||
feedback
|
|
You can also use Automator to accomplish the same thing if the terminal scares you:
| |||||||||
feedback
|
