Re: Move a file to the Trash
Re: Move a file to the Trash
- Subject: Re: Move a file to the Trash
- From: Ondra Cada <email@hidden>
- Date: Wed, 6 Nov 2002 15:03:44 +0100
On Wednesday, November 6, 2002, at 01:14 , Nathan Day wrote:
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.
(There, incidentally, seems not to be a simple good solution, at least for
10.1, dunno of 10.2. Depending on the kind of application you still might
end with applescripting Finder, but if so, you should encapsulate the code
well and check whether it's available or not...).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.