FoldingMacro:
initial version. might be still buggy so use it at your own risk. documentation and usage advice in the script header