Re: How to empty the Trash programmatically?
Re: How to empty the Trash programmatically?
- Subject: Re: How to empty the Trash programmatically?
- From: Jeremy Pereira <email@hidden>
- Date: Fri, 16 Apr 2010 09:46:27 +0100
On 16 Apr 2010, at 08:22, Graham Cox wrote:
> Don't.
>
> The only app that the user wants to empty the trash is Finder, not yours. If they want it emptied (or emptied securely), they'll go to the Finder and use the menu there. It's OK for your app to move stuff to the trash as long as it's clear to the user that will happen, but emptying it is not your business. The clue really is the fact that doing so is not supported directly by an API.
+1 to that. Any application that emptied my Trash programmatically would find itself being the first new item in there.
>
> --Graham
>
>
>
> On 16/04/2010, at 4:45 PM, Oleg Krupnov wrote:
>
>> But the progress-bar window will still pop up...
>>
>> On Fri, Apr 16, 2010 at 9:41 AM, Dave Keck <email@hidden> wrote:
>>> tell application "Finder" to empty trash without warns before emptying
>>>
>>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden