• 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: 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.

References: 
 >Re: Move a file to the Trash (From: Ondra Cada <email@hidden>)

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