I have a macro in Keyboard Maestro that I use to manage upcoming meetings. When I run it, a prompt appears asking for the meeting topic and the date it will be held. That generates a new meeting template in Obsidian inside my meeting notes folder, then grabs the link to the Obsidian note and generates a task in OmniFocus using a shell script that URL encodes the variable values, and sets the due the day before the meeting date. I use this to help keep meetings I need to prep for throughout the week on my todo list.
The one piece that doesn’t work is saving the Obsidian note’s link to the notes section of the new OmniFocus todo. I can get around this in Things 3 with some tab key simulations to move into the notes field of that app, but the quick entry window on OmniFocus 3 doesn’t let you do that. So I tried adding the Obsidian link with the OmniFocus URL builder’s “note” tag, but passing that obviously isn’t URL-encoded the way the other variables I pass are and OmniFocus doesn’t save it.
Does anyone know how to get around this limitation of passing a URL to a local file inside of a shell script? Here’s the macro: Dropbox - Prepare for a Meeting with Obsidian and Omnifocus.kmmacros - Simplify your life