• 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: Empty trash with locked items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Empty trash with locked items
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Re: AS Problem
  • Next by Date: Re: Saving info to a newly created text file from within a scri
  • Previous by thread: Re: Empty trash with locked items
  • Next by thread: Re: Empty trash with locked items
  • Index(es):
    • Date
    • Thread