Re: Emptying Trash with locked items?
Re: Emptying Trash with locked items?
- Subject: Re: Emptying Trash with locked items?
- From: "Marc K. Myers" <email@hidden>
- Date: Fri, 01 Feb 2002 00:13:32 -0500
- Organization: [very little]
>
From: "Romulus Barabas" <email@hidden>
>
To: email@hidden
>
Subject: Emptying Trash with locked items?
>
Date: Thu, 31 Jan 2002 21:17:37 -0500
>
>
Is there any way to empty the trash without getting an error if there are
>
locked files in it? Just like doing it with the Alt key pressed. I tried
>
changing the "warns before emptying" attribute, but it doesn't seem to do
>
anything. I know I can use John's deleteFile, but in this case I'd
>
appreciate a "Finder" way.
You could set the locked property of the entire contents of the trash to
false. This might or might not work since the "entire contents"
reference is somewhat buggy.
You could write a recursive routine that mines all the included folders
in the trash, locates all the files, and sets the locked property of
each one to false individually.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[2/1/02 12:12:54 AM]