Skip to content

Instantly share code, notes, and snippets.

Avatar

Kare Morstol kareman

View GitHub Profile
@kareman
kareman / trash.swift
Last active Apr 14, 2020 — forked from beccadax/trash.swift
Swift 3 script for sending files and folders to the trash, using the SwiftShell framework from https://github.com/kareman/SwiftShell .
View trash.swift
#!/usr/bin/env swiftshell
/*
* Released under the MIT License (MIT), http://opensource.org/licenses/MIT
*/
import SwiftShell
import Dispatch
import Cocoa