Re: How to empty the Trash programmatically?
Re: How to empty the Trash programmatically?
- Subject: Re: How to empty the Trash programmatically?
- From: Oleg Krupnov <email@hidden>
- Date: Fri, 16 Apr 2010 09:35:10 +0300
Yes, I see that I can use AppleScript. But is this really the only
way? I would like to avoid Finder UIs popping up.
On Fri, Apr 16, 2010 at 9:30 AM, Jens Alfke <email@hidden> wrote:
>
> On Apr 15, 2010, at 11:05 PM, Oleg Krupnov wrote:
>
>> Is there a way to programmatically empty the Trash can?
>
> Send the Finder an ‘Empty Trash’ AppleEvent. You can use the scripting bridge API to do this pretty easily.
>
> —Jens
_______________________________________________
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