Skip to main content

Don’t open the new file directly

ID
efd1bcd
date
2024-05-19 20:48:05+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
d490ef3
message
Don't open the new file directly
changed files
2 files, 1 addition, 4 deletions

Changed files

README.md (1592) → README.md (1644)

diff --git a/README.md b/README.md
index f7376b6..3be86e5 100644
--- a/README.md
+++ b/README.md
@@ -29,4 +29,4 @@ I configure those in the in-app editor, because I don't want to put them in a pu
 $ python3 create_snippets.py
 ```
 
-This will open the newly-created snippets collection in Alfred Preferences.
+This will create a new file `Alex’s snippets.alfredsnippets`, which you can open to add these snippets to Alfred Preferences.

create_snippets.py (7452) → create_snippets.py (7361)

diff --git a/create_snippets.py b/create_snippets.py
index 19115ad..7dd1338 100755
--- a/create_snippets.py
+++ b/create_snippets.py
@@ -4,7 +4,6 @@ import hashlib
 import json
 import os
 import pathlib
-import subprocess
 import uuid
 import zipfile
 
@@ -281,5 +280,3 @@ if __name__ == "__main__":
 
         for shortcut, expansion in SNIPPETS.items():
             add_snippet(zf, shortcut, expansion)
-
-    subprocess.check_call(["open", "Alex’s snippets.alfredsnippets"])