Re: Deleting locked files
Re: Deleting locked files
- Subject: Re: Deleting locked files
- From: "Arthur J Knapp" <email@hidden>
- Date: Sun, 21 Jan 2001 11:16:26 -0500
>
Date: Sat, 20 Jan 2001 17:41:15 -0800
>
Subject: Re: Deleting locked files
>
From: Paul Berkowitz <email@hidden>
>
On 1/20/01 5:26 PM, "Nigel Garvey" <email@hidden> wrote:
>
> 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.
As I read this, a chill creep up my back, as I was horrified beyond
all imagining. A *clean* install twice in four days!!! ;-)
>
>> 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?)
Hey, cut that out... ;-)
By the way, what is wrong with:
tell application "Finder"
set locked of entire contents of trash to false
empty trash
end tell
Just the known problems with the "entire contents" syntax?
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
"...well the rain falls down
without my help, I'm afraid
and my lawn gets wet,
though I withheld my consent..."
}