Re: Empty trash with locked items
Re: Empty trash with locked items
- Subject: Re: Empty trash with locked items
- From: Nigel Garvey <email@hidden>
- Date: Fri, 20 Jul 2001 15:09:35 +0100
David Schulze wrote on Thu, 19 Jul 2001 13:39:38 -0500:
>
Sorry for the basic question, but I'm having trouble navigating
>
www.apple.com/applescript. . .
>
>
How can I empty the trash when there exists locked items?
>
>
tell application "Finder"
>
empty trash (with command key down?)
>
end tell
If you have Jon's Commands, you can do this:
tell application "Finder"
deleteFile (get items of trash) with unlocking without safety net
update
end tell
This clears the trash of locked files, folders, folders with locked
files, etc.
NG