Re: Emptying Trash with locked items
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. |
----------------------------------------------------------------------