kpw
-
Posts
4 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by kpw
-
-
-
You can right-click on the snippet collection you are interested in and choose "Export".
Then this python3 script should print the details out (change "snippetExportFile" with your exported filename).
#!/usr/bin/env python3 from zipfile import ZipFile import os import json snippetExportFile = '/Users/kpw/Desktop/kpw.alfredsnippets' with ZipFile(snippetExportFile, 'r') as zip: files = zip.filelist for zipfile in files: if zipfile.filename.endswith(".json"): with zip.open(zipfile.filename) as myfile: snippetFileJson = myfile.read() alfredDict = json.loads(snippetFileJson.decode('utf-8')) snippetDict = alfredDict["alfredsnippet"] print(f'Name:\t\t{snippetDict["name"]}') print(f'Keyword:\t{snippetDict["keyword"]}') snippetText = snippetDict["snippet"].replace("\n", "\\n") print(f'Snippet:\t{snippetText}') print("-" * 80)
-
Is there an easy way to enable all snippets in a snippet collection?
in Discussion & Help
Posted
This isn't currently working for me. Checking or unchecking the box seems to have no effect when importing collection. All snippets on import file are unchecked.
Specifically the "Mac symbols" collection.
Latest macOS Sonoma 14.1