How do I open a URL with a non-standard scheme?

I want my script to open a URL with a scheme registered to a particular third-party app, in order to open that app and have it do something. That app does not follow the x-callback-url standard. I tried, but I get the error “The URL is invalid”. Is there another API that will open such a URL?

This works for me for a non-http* URL."drafts://");

Perhaps if you share more specifics we can guide you on options? At the moment you have provided only the surface level of details, which is leaving things overly vague in terms of reproduction and testing.

1 Like

Thank you for investigating this. After trying some other URLs, I discovered that Scriptable did not consider the URL invalid because of the scheme, but because it contained a space. I’ve now resolved the problem.

1 Like