Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
57
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 (quoted form of the POSIX path of thisFile) as text
  9.     set thisCmd to "srm -rs " & thisPath & " &"
  10.     do shell script thisCmd
  11.     beep
  12. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement