Re: Questions questions...
Re: Questions questions...
- Subject: Re: Questions questions...
- From: Kai Edwards <email@hidden>
- Date: Wed, 13 Mar 2002 22:19:13 +0000
Tue, 12 Mar 2002 16:37:59 -0600, mjn <email@hidden> wrote:
>
I commented out "whose creator type is "NDSo"" and the script ran fine (except
>
for not being able to delete the trash because of locked items).
Sorry, mjn - in my haste to go for the jugular of this script, I overlooked
the snag you mentioned.
If you haven't already done so, then you might try inserting something like
this within the Finder tell block - just before the 'empty trash' command:
----------------------------------------
if true is in trash's files's locked then
beep
display dialog "Empty trash contents - including locked item(s)?" [NO BREAK]
default button 1 with icon 2
set trash's files's locked to false
end if
----------------------------------------
Or - if you prefer to live dangerously - just this line:
----------------------------------------
set trash's files's locked to false
----------------------------------------
Nothing here is tested on OS 9.2.2 / AS 1.7 - but maybe worth a try?
Kai
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.