bitfocus / companion-module-generic-http

Generic HTTP module
MIT License
9 stars 19 forks source link

Cannot use this for x-callback calls #51

Closed jgclark closed 7 months ago

jgclark commented 7 months ago

I realise this module has HTTP in the title ... but I was hoping to find a way to trigger x-callbacks with other protocols than http(s).

My particular use case is for NotePlan app which has many functions that can be triggered this way. e.g. noteplan://x-callback-url/runPlugin?pluginID=jgclark.Dashboard&command=show%20dashboard

Apologies if another module covers this, but if so its not obvious from the name.

JeLuF commented 7 months ago

According to the noteplan documentation, you can access noteplan URLs from the command line using the "open" command. So you should be able to use the 'internal: System: Run shell path (local)' action, using the path:

open "noteplan://x-callback-url/runPlugin?pluginID=jgclark.Dashboard&command=show%20dashboard"

Not having a Mac, I couldn't test this myself.

jgclark commented 7 months ago

You're a ⭐️ @JeLuF. Thanks for figuring out that successful alternative.