• 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: Michelle Steiner <email@hidden>
  • Date: Wed, 17 Oct 2001 07:59:17 -0700

On 10/17/01 7:31 AM, Perbix, Michael <email@hidden> wrote:

>So I figures that I can just write a little applescript that will check to
>see if the folder IS there and if so, remove it to trash and empty the
>trash....2 things I just can not get to work...
>
>number 1 is checking to see if it is there...

tell application "Finder"
if not (folder "dora:foobar" exists) then
--do things
else
--report the error
end if
end tell

>number 2 is emptying the trash with locked items since the aliases are
>locked.

tell application "Finder"
set the locked of the entire contents of the trash to false
end tell

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Emptying Trash with locked items
      • From: Cornwall <email@hidden>
  • Prev by Date: Emptying Trash with locked items
  • Next by Date: QT export scripts
  • Previous by thread: Re: Emptying Trash with locked items
  • Next by thread: Re: Emptying Trash with locked items
  • Index(es):
    • Date
    • Thread