Re: Emptying Trash with locked items
Re: Emptying Trash with locked items
- Subject: Re: Emptying Trash with locked items
- From: Cornwall <email@hidden>
- Date: Wed, 17 Oct 2001 10:16:22 -0700
At 7:59 AM -0700 10/17/01, Michelle Steiner wrote:
>
>number 2 is emptying the trash with locked items since the aliases are
>
>locked.
>
>
tell application "Finder"
>
set the locked of the entire contents of the trash to false
>
end tell
About a year ago I tested this construction and found that it failed with sufficiently nested sub folders. It will skip some nested folders entirely. I just re-tested this script with a six deep folder hierarchy, and got the same result. Entire contents fails to find all the locked files. New G4 running OS 9.2.1.
tell application "Finder"
set the locked of (every file of the entire contents of the trash whose locked is true) to false
end tell
Corny