Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 6, 2012, 08:35 PM   #1
themacster298
macrumors member
 
Join Date: Feb 2011
Delete code?

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?
themacster298 is offline   0 Reply With Quote
Old May 6, 2012, 09:15 PM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
A Mac application written in which programming language?


If you mean in Objective-C, using the Cocoa framework, see this:
http://www.cocoabuilder.com/archive/...ive-cocoa.html

Found by googling objective-c move to trash

Also see:
https://developer.apple.com/library/...Reference.html

Found by reading the cocoabuilder page and looking up the NSWorkspace class reference.
chown33 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Library for simple Face and QR Code/Bar Code/Etc detection DarthFoley iPhone/iPad Programming 0 Jan 26, 2014 01:11 PM
Resolved: ML code for OSX server code Processor OS X 10.8 Mountain Lion 5 Jul 28, 2012 12:51 AM

Forum Jump

All times are GMT -5. The time now is 02:38 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC