• 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: Kai Edwards <email@hidden>
  • Date: Fri, 01 Feb 2002 18:29:11 +0100

> From: "Romulus Barabas" <email@hidden>
> To: email@hidden
> Subject: Emptying Trash with locked items?
> Date: Thu, 31 Jan 2002 21:17:37 -0500
>
> Is there any way to empty the trash without getting an error if there are
> locked files in it? Just like doing it with the Alt key pressed. I tried
> changing the "warns before emptying" attribute, but it doesn't seem to do
> anything. I know I can use John's deleteFile, but in this case I'd
> appreciate a "Finder" way.

This works for me:

tell application "Finder"
set locked of trash's entire contents to false
empty trash
end tell

Kai

--

**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************


  • Prev by Date: Re: How to coerce a real to an integer in X?
  • Next by Date: Re: ACGI form parsing in OSX?
  • Previous by thread: Re: Emptying Trash with locked items?
  • Next by thread: Re: Emptying Trash with locked items?
  • Index(es):
    • Date
    • Thread