• 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: Deleting locked files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting locked files


  • Subject: Re: Deleting locked files
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 21 Jan 2001 01:26:32 +0000

Paul Berkowitz wrote on Sat, 20 Jan 2001 15:28:24 -0800:

>I just discovered something interesting:
>
>Although you cannot empty the trash with a locked file in it, nor will Jon's
>Commands deleteFile nor Akua's collate with deletion oblige,

Well...

tell application "Finder"
deleteFile (every file of the trash) as list with unlocking
-- or, to clear everything, including loaded folders:
deleteFile (contents of the trash) as list with unlocking without
safety net
end tell

>you _can_ use
>Stuffit Commands to stuff it with deleting originals, then delete the
>stuffed file with one of the methods above, and it works.

I like it. It's eccentric. Very Knappish. :-)

NG


  • Follow-Ups:
    • Re: Deleting locked files
      • From: "Christopher C. Stone" <email@hidden>
    • Re: Deleting locked files
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Startup Disk and other oddities
  • Next by Date: Re: Count of Tab characters
  • Previous by thread: Deleting locked files
  • Next by thread: Re: Deleting locked files
  • Index(es):
    • Date
    • Thread