• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Move a file to the Trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Move a file to the Trash
      • From: Wade Tregaskis <email@hidden>
    • Re: Move a file to the Trash
      • From: Marco Binder <email@hidden>
References: 
 >Re: Move a file to the Trash (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: How to encode STL vector
  • Next by Date: Re: Move a file to the Trash
  • Previous by thread: Re: Move a file to the Trash
  • Next by thread: Re: Move a file to the Trash
  • Index(es):
    • Date
    • Thread