Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/15/2020 in all areas

  1. @deanishe I’m convinced.
    1 point
  2. It's a super-common occurrence with my workflows because they all have log files. Asking users to run shell commands is a fundamentally fraught proposition. Look at all the screw-ups in the DownVid thread. It still requires running a script. My preference would be for context-menu items ("Reveal Workflow Cache in Finder" + "Reveal Workflow Data in Finder") that are greyed out if the directories don't exist.
    1 point
  3. I use it quite a lot, too. The best way to get the clipboard history is to read it from Alfred's clipboard database. It's a *little* hacky, but I've seen Andrew recommend people do it this way, so it's pretty safe. Also, it's extremely fast. from contextlib import contextmanager import os import sqlite3 # Number of clipboard items to retrieve COUNT = 10 # Path to clipboard history database # For Alfred 3, replace "Alfred" with "Alfred 3" dbpath = os.path.expanduser('~/Library/Application Support/Alfred/Databases/clipboard.alfdb') @contextmanager def database(path): """O
    1 point
×
×
  • Create New...