PyObjC 経由で ScriptingBridge を使用して、ゴミ箱アイテムを復元 (戻す) する方法を見つけようとしています。
ここには十分なドキュメントがありません
from AppKit import NSURL
from ScriptingBridge import SBApplication
targetfile = NSURL.fileURLWithPath_(f.realpath)
finder = SBApplication.applicationWithBundleIdentifier_("com.apple.Finder")
trash_items = finder.trash.items()
助言がありますか?
ありがとう!
PS: Snow Leopard を使用しています。