• 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: Questions questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Extensis Suitcase 10 scripting
  • Next by Date: Re: Converting original items...
  • Previous by thread: Re: Questions questions...
  • Next by thread: How do I get the date received and the date sent of a Mail message?
  • Index(es):
    • Date
    • Thread