I'm trying to figure out a way to restore (Put Back) Trash Item using ScriptingBridge via PyObjC.
There isn't enough documentation here
from AppKit import NSURL
from ScriptingBridge import SBApplication
targetfile = NSURL.fileURLWithPath_(f.realpath)
finder = SBApplication.applicationWithBundleIdentifier_("com.apple.Finder")
trash_items = finder.trash.items()
Any suggestions?
Thanks!
PS: I'm using Snow Leopard.