Re: Deleting locked files
Re: Deleting locked files
- Subject: Re: Deleting locked files
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 20 Jan 2001 17:41:15 -0800
On 1/20/01 5:26 PM, "Nigel Garvey" <email@hidden> wrote:
>
Paul Berkowitz wrote on Sat, 20 Jan 2001 15:28:24 -0800:
>
>
> I just discovered something interesting:
>
>
>
> Although you cannot empty the trash with a locked file in it, nor will Jon's
>
> Commands deleteFile nor Akua's collate with deletion oblige,
>
>
Well...
>
>
tell application "Finder"
>
deleteFile (every file of the trash) as list with unlocking
>
-- or, to clear everything, including loaded folders:
>
deleteFile (contents of the trash) as list with unlocking without
>
safety net
>
end tell
>
I was a little afraid to do that here. It was a file that was supposed to be
some sort of (primitive) virus expunger called Exorcist, but for all I knew
would bring it back again. One of its files was called 666 which was the
guise the virus I had came in, in my Extensions folder. NAV said it was
actually the SevenDust C virus, and had infected over 100 application files,
caused crashing, couldn't start up with extensions off, had to clean install
twice in four days, etc. It also got rid of three of those 666 files (they
multiplied). I really wanted to delete it without unlocking it, though for
all I know Stuffit unlocked it anyway when deleting originals.
>
> you _can_ use
>
> Stuffit Commands to stuff it with deleting originals, then delete the
>
> stuffed file with one of the methods above, and it works.
>
>
I like it. It's eccentric. Very Knappish. :-)
>
(Thank you. But a bit shorter than the real McCoy, no?)
--
Paul Berkowitz