Re: Emptying Trash with locked items?
Re: Emptying Trash with locked items?
- Subject: Re: Emptying Trash with locked items?
- From: Kai Edwards <email@hidden>
- Date: Fri, 01 Feb 2002 18:29:11 +0100
>
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.
This works for me:
tell application "Finder"
set locked of trash's entire contents to false
empty trash
end tell
Kai
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************