Re: Move a file to the Trash
Re: Move a file to the Trash
- Subject: Re: Move a file to the Trash
- From: Wade Tregaskis <email@hidden>
- Date: Thu, 7 Nov 2002 15:48:22 +1100
The simplest way to do this would be to just use NSAppleScript and
execute a script that tells finder to move the file to trash...
Simplest it may be, but, as simplest solutions often go, quite wrong.
Check archives for a lenghty discussion of this; the gist is that
there might be no Finder at all.
It seems to me that the trash is a Finder provision anyway - you
certainly can't empty it without the Finder open, or without at least
some app duplicating the Finder's functionality. So I would say the
NSAppleScript solution would work fine. Finder replacements will need
to duplicate the functionality, or use the standard Unix approach of
truly deleting things when you ask it to.
Wade Tregaskis
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.