If you look at the dictionary of the Finder youâll find this at the command empty
so your applescript will look like this:
tell application "Finder"
empty trash with security
-- applescript automaticly compiles a true parameter with "with"
-- actually you type "empty trash security true"
end tell
once, it removes the entry from the directory and sets the bytes of all allocated memory blocks to zero.
Itâs an urban legend to get more security while overwriting 2 or more times. Digital data are digital data
i Just Tried running the script, it started, however, i walked away for 5 minutes came back and it said that the application had timed out⌠, however the erase was still running , any ideas?
I think (but Iâm not sure) this happens because itâs taking way too long until the Finder gives a response according to applescript. I read some other applescripts with the use of with timeout of ., but I never used it before and I do not have a single idea how it works. I guess it has to be something like this:
with timeout of 1800 seconds
tell application "Finder" to empty with security
end timeout
But canât you solve the problem by using the shell script?