This python script is a radical attempt to remove all personal information from iTunes M4A audio tracks. All ID3 information will be lost in the process, sadly. You need to figure out a special offset in one of your audio files in a hex editor for this to work. If you are looking for a very simple solution, this is not your script.
If this helps you, please consider tipping to make up for the ridiculous amount of time I lost putting this together:
- get a recent (0.9.5+) version of AtomicParsley (I downloaded the stable OS X binary from bitbucket.org/shield007/atomicparsley), put it in your /Applications folder (or note where you put it) and make it executable
- modify the file
clean.py
: adjust the path to the AtomicParsley executable where necessary, figure out the required value for the variablestringtoreplace
. You need to open one of your M4A files with a hex editor such as HexFiend and locate the offset at the beginning of the file where your name is written in plain text. Note that exact string and enter it as the variable value. The script will replace this part of the file with zeros. - make a new Automator app, containing a
Get Selected Finder Items
action and aRun Shell Script
action. For the shell script, set pass input toas arguments
and enter the code fromautomatorscript.sh
. - save the Automator file as app.
You should be able to drag and drop one or multiple M4A audio tracks to the app icon now. New versions of the tracks will be created with a _clean
suffix. They should be smaller in file size as well.
I suck at Python, bash shell scripting, AtomicParsley, Automator and pretty much every aspect of this app. Thanks again, stackoverflow!