sourcedir="/Volumes/Storage/Downloads/machttp"
extracts="/Volumes/Storage/Downloads/machttpextracts"
mkdir -p "$extracts"
IFS=$'\n'
for thefile in $(find "$sourcedir" -type f -not -name '.DS_Store'); do
if applesingle probe "$thefile" 2> /dev/null ; then
printf "Extracting AppleSingle \"$thefile\"\n"
applesingle decode "$thefile" -o "$extracts/$(basename "$thefile")"
mv -f "$extracts/$(basename "$thefile")" "$(dirname "$thefile")"/
fi
done
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/Licensing Info"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/MacHTTP Settings"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/MacHTTP.config"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Examples/HyperCard CGI demo/CGI Demo Stack"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Examples/map.cgi"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Examples/map.script"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Examples/newtest.acgi"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Examples/test.cgi"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Examples/test.script"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Extending MacHTTP Scripts/README"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/MacHTTP Software and Docs/Tutorials/Extending MacHTTP Scripts/Script1.cgi"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/Ordering Info"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/Quick Start Guide"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/distribution/README"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/MacHTTP.config"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/MacHTTP.mcp"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/source/resource/PW_UI.rsrc"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/machttp_server/source/resource/Template.rsrc"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/plugins/x10tools_i/X10Tools_release/MacHTTP.config"
Extracting AppleSingle "/Volumes/Storage/Downloads/machttp/other/machttp/plugins/x10tools_i/X10Tools_release/Read Me First!"