View Full Version : Delete code?
May 6, 2012, 08:35 PM
Hello, so recently I saw an applescript that move files to the trash that you link it to.(/Users/name/Downloads is an example)
How would I do this in a mac application?
May 6, 2012, 09:15 PM
A Mac application written in which programming language?
If you mean in Objective-C, using the Cocoa framework, see this:
Found by googling objective-c move to trash
Found by reading the cocoabuilder page and looking up the NSWorkspace class reference.