• 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: "Marc K. Myers" <email@hidden>
  • Date: Fri, 01 Feb 2002 00:13:32 -0500
  • Organization: [very little]

> 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.

You could set the locked property of the entire contents of the trash to
false. This might or might not work since the "entire contents"
reference is somewhat buggy.

You could write a recursive routine that mines all the included folders
in the trash, locates all the files, and sets the locked property of
each one to false individually.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[2/1/02 12:12:54 AM]


  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: Re: ACGI form parsing in OSX?
  • Previous by thread: Re: issues with non-ASCII characters vs. "do shell script"
  • Next by thread: Re: Emptying Trash with locked items?
  • Index(es):
    • Date
    • Thread