• 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 23:23:03 +0100

> Date: Fri, 01 Feb 2002 18:29:11 +0100
> Subject: Re: Emptying Trash with locked items?
> From: Kai Edwards <email@hidden>
> To: Romulus Barabas <email@hidden>
> CC: AppleScript Users List <email@hidden>
>
> This works for me:
>
> tell application "Finder"
> set locked of trash's entire contents to false
> empty trash
> end tell

Sorry - that should be:

tell application "Finder"
try -- to avoid error if trash is empty
set locked of trash's entire contents to false
end try
empty trash
end tell

Kai

--

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


  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: Re: ACGI form parsing in OSX?
  • Previous by thread: Re: Emptying Trash with locked items?
  • Next by thread: [OFF] PowerPoint [was Re: Scripting OS X Mail app]
  • Index(es):
    • Date
    • Thread