careful_rm icon indicating copy to clipboard operation
careful_rm copied to clipboard

Skip Applescript on MacOS

Open MikeDacre opened this issue 6 years ago • 1 comments

The code works fine on Mac, but it is slow because applescript is slow, I think there should be a way to bypass applescript by editing the .DS_Store files, but I haven't bothered yet as there isn't good documentation on how this even works.

MikeDacre avatar Mar 06 '18 02:03 MikeDacre

macOS ships with Python2.7 and PyObjC as standard. Use -[NSFileManager trashItemAtURL:resultingItemURL:error:].

hhas avatar Mar 06 '18 10:03 hhas