I wrote a script that did this very thing. It's called
macls. (follow the link). Go ahead and use snippets from my script if you want...or use the script for your needs. This little baby has actually come to my rescue many times.
_
_
_
_
_
_
_
_
_
_
- Jim
Insert clever comment here...