Tweak the comment a little
- ID
6ceaac2- date
2023-12-28 22:40:34+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
7dfa77b- message
Tweak the comment a little- changed files
1 file, 3 additions, 4 deletions
Changed files
macos/obnote (2048) → macos/obnote (2040)
diff --git a/macos/obnote b/macos/obnote
index f1371e5..f7fd613 100755
--- a/macos/obnote
+++ b/macos/obnote
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
"""
-Prints the path to the note I currently have open in Obsidian (if any).
+Print the path to the Markdown file which is currently open
+in Obsidian (if any).
This relies on knowing the on-disk locations of my Obsidian vaults,
so you won't be able to use this without changing it for your own setup.
@@ -31,9 +32,7 @@ def get_applescript_output(script):
"""
cmd = ["osascript", "-e", script]
- return subprocess.check_output(cmd)
- .strip()
- .decode("utf8")
+ return subprocess.check_output(cmd).strip().decode("utf8")
if __name__ == "__main__":