Skip to content

Instantly share code, notes, and snippets.

@extratone
Forked from SKaplanOfficial/count_shortcuts.py
Created August 21, 2022 12:56
Show Gist options
  • Save extratone/e269cc5f80dc93fe042df616b1a17cf1 to your computer and use it in GitHub Desktop.
Save extratone/e269cc5f80dc93fe042df616b1a17cf1 to your computer and use it in GitHub Desktop.
Using PyXA to get the number of shortcuts in each shortcuts folder
import PyXA
app = PyXA.application("Shortcuts")
all_shortcuts = app.folders().shortcuts()
amounts = [len(ls) for ls in all_shortcuts]
print(amounts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment