Sleep to avoid parse error.
Setup cocoaDialog as command.
Added support for custom output folder.
Remove extra folder.