Skip to content

Instantly share code, notes, and snippets.

@marteinn
Created July 4, 2011 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marteinn/1063705 to your computer and use it in GitHub Desktop.
Save marteinn/1063705 to your computer and use it in GitHub Desktop.
Remove SVN - Applescript droplet
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