This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
) | |
type Icon struct { | |
Path string `json:"path"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript -l JavaScript | |
// Adapted from the original script of @deanishe | |
// https://git.deanishe.net/deanishe/alfred-quit-apps/src/branch/master/DockApplications.js | |
ObjC.import('AppKit') | |
ObjC.import('stdlib') | |
function run(argv) { | |
let apps = ObjC.unwrap($.NSWorkspace.sharedWorkspace.runningApplications) |