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 23:23:03 +0100
>
Date: Fri, 01 Feb 2002 18:29:11 +0100
>
Subject: Re: Emptying Trash with locked items?
>
From: Kai Edwards <email@hidden>
>
To: Romulus Barabas <email@hidden>
>
CC: AppleScript Users List <email@hidden>
>
>
This works for me:
>
>
tell application "Finder"
>
set locked of trash's entire contents to false
>
empty trash
>
end tell
Sorry - that should be:
tell application "Finder"
try -- to avoid error if trash is empty
set locked of trash's entire contents to false
end try
empty trash
end tell
Kai
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************