• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Emptying Trash with locked items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Emptying Trash with locked items
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Emptying Trash with locked items (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Two Acrobat Scripting Questions
  • Next by Date: Two Acrobat Scripting questions
  • Previous by thread: Re: Emptying Trash with locked items
  • Next by thread: Re: Emptying Trash with locked items
  • Index(es):
    • Date
    • Thread