Link to run a bash script

Things I have tried

searching this forum. I did find this when I searched google:

which is almost what I’m looking for. It seems to have the ability to pass Obsidian info like the note name etc. to a script.

What I’m trying to do

I’d like to be able to have something like a mailto:link but instead a ‘script:some bash file.sh’ type link you could have as a [label](functional link) type format, so it could function as a “button” to process info, but not have to take up hotkey assignment space.

Does this already exist or should I format this as a feature request?

That may be a little too platform specific, but generally (at least on MacOS) you can trigger any app that responds to URL Schemes. I use Keyboard Maestro for stuff like this using the kmtrigger URL Scheme. Today runs a multistage script that reaches into a few different calendar/todo systems to return everything into a checklist for me daily note.

You can also trigger Shortcuts this way that can in turn launch shell scripts etc. shortcuts://run-shortcut?name=[name]&input=[input]&text=[text]

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.