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 <j...@mooseyard.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com