Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 6, 2012, 07: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, 08: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:49 PM.

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

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