Reading the Contents of Markdown Files with Shortcuts
TIPS
Tips and tricks to master your apps and be more productive.
Reading the Contents of Markdown Files with Shortcuts
I was recently updating an old shortcut for appending text to a note in Obsidian, and I kept getting an error when trying to fetch the text contents of Markdown files stored in Finder. All my code was correct, and I couldn’t figure out why Shortcuts for Mac was returning the plain text filename of the selected document rather than its full text contents.
![](https://cdn.macstories.net/cleanshot-2023-04-14-at-10-09-18-2x-1681459775572.png)
Then I tried something, and it worked: I tried to parse the file with a .txt extension instead of .md.