Secure Empty Trash AppleScript

Joined
Mar 11, 2004
Messages
1,964
Reaction score
174
Points
63
I'm trying to write a secure empty trash script, but the script editor bounces every attempt. It takes only a three-line script to empty the trash without the security overwrite:

tell application "finder"
empty trash
end tell

but telling the finder to "secure empty trash" or using a bunch of variations of that command doesn't work.

Does anyone have any ideas?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top