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