I want to create a app kind of like Ds Store Remover but it will remove directories instead of just one file. So I was wondering how do I go about doing this I have a bash script the code is below I just need to know what to do. To have the app ask for root password and allow the user to select the directory that they want these directories.
sudo rm -rf “.Thrashes”
sudo rm -rf “.Spotlight-V100”
sudo rm -rf “.Trash”
sudo rm -rf “.DS_Store”
sudo rm -rf “.Thrashes”
sudo rm -rf “.Spotlight-V100”
sudo rm -rf “.Trash”
sudo rm -rf “.DS_Store”