Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- ~/Library/Scripts/simple-secure-remove.scpt
  2. -- Bound to the Command+Option+Control+"\" keyboard shortcut
  3. -- Securely removes files selected in Finder using the -rs option of srm (simple method and recursively)
  4.  
  5. tell application "Finder"
  6.     activate
  7.     set thisFile to selection as alias
  8.     set thisPath to (POSIX path of thisFile) as text
  9.     do shell script "srm -rs " & thisPath
  10.     beep
  11. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement