Created
July 4, 2011 17:52
-
-
Save marteinn/1063705 to your computer and use it in GitHub Desktop.
Remove SVN - Applescript droplet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on open current_files | |
repeat with current_file in current_files | |
-- validate if the file as a folder | |
if (current_file as string) ends with ":" then | |
try | |
set current_file_path to (POSIX path of the current_file as string) | |
do shell script "find '" & current_file_path & "' -name '.svn' | xargs rm -Rf" | |
end try | |
end if | |
end repeat | |
end open |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment