Skip to content

Instantly share code, notes, and snippets.

@itsgoingd
Created September 5, 2012 12:51
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 itsgoingd/3636098 to your computer and use it in GitHub Desktop.
Save itsgoingd/3636098 to your computer and use it in GitHub Desktop.
Applescript: instantly delete selected files in Finder
-- instantly delete selected files in Finder
tell application "Finder" to repeat with filename in (get selection)
do shell script "rm -rf " & quoted form of POSIX path of (filename as text)
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment