Mac OS X

Adding and Removing Bundle Flags

The Mac OS X Developer Tools come with an application called SetFile, which can be leveraged to change the bundle flag attribute. For example to add a bundle flag to a sparse bundle that is missing one you could use the following (assuming the name is FILENAME):

SetFile -a B ~/Desktop/FILENAME.sparsebundle

To then remove the bundle flag:

SetFile -a b ~/Desktop/FILENAME.sparsebundle