Script Kit Logo
Script Kit
by John Lindquist

Scripts by dschapman

MacOS Shortcut Launcher

dschapman's avatar
Daniel Chapman
// Name: Shortcuts
// Description: Shortcut Launcher
// Keyword: sc
import "@johnlindquist/kit";
const DB = home("Library", "Shortcuts", "Shortcuts.sqlite");
let { default: sqlite3 } = await import("sqlite3");
let { open } = await import("sqlite");
const shortcuts_db = await open({ filename: DB, driver: sqlite3.Database });
let query = await shortcuts_db.all(
"SELECT ZNAME,ZACTIONSDESCRIPTION,ZICON,ZBACKGROUNDCOLORVALUE,ZGLYPHNUMBER FROM ZSHORTCUT INNER JOIN ZSHORTCUTICON on ZSHORTCUTICON.Z_PK=ZICON"
);
//Color mappings found https://github.com/atnbueno/Shortcuts-old
const colors = {
4282601983: { RGB: "#F26369", Gradient: "#F36F74 #F2585E" },
4251333119: { RGB: "#FF8567", Gradient: "#FF8E73 #FF7C5C" },
4271458815: { RGB: "#F7A752", Gradient: "#F8AE5F #F7A145" },
4274264319: { RGB: "#E7C640", Gradient: "#E8CA45 #E5C238" },
369 lines below â€ĸ View full script