thank you! I am also a Pocket subscriber/user, though I don’t use the app version anymore. (I’d rather have the full power of a web browser, with its extensions and services. E.g., I use it in combination with Pinboard, adding Pinboard notes to pages. But that’s just me.)
Note to readers: the URLs returned by the Pocket app are web links, so they will take you to a web browser. the advantage is that any Hook link you’ve made in the context of a browser is shown in Pocket, and vice versa. In my case that is the desired behavior.
There might be a clever way to open items in Pocket itself based on its library data —I haven’t checked yet.
Also: when you archive a web page on Pocket, it of course gets its own URL on https://app.getpocket.com/read/3019674262 . Pocket normally exposes the original URL via a “View Original” link at the top (but some of its featured articles don’t). I’ve long wanted to ‘unify’ the original web URL with the pocket URL. That is an instance of a more general and interesting problem that interests me a lot in relation to Hook. The idea is that anything linked to the https://app.getpocket.com URL should automatically be treated as linked to the original URL, and vice versa. (another example: a DEVONthink think file has a DEVONthink:// url, but also a transient file:// URL and a hook://URL). We’ve got some thoughts on this and are open to thoughts/opinions. We haven’t had time to address that super generally, but as we grow and resources permit, it’s something I definitely want to do.
Anyway, we’ll add the basic script in English, French and German. If anyone wants to contribute other languages, please do. And that goes for any UI scripted app in Hook. We might organize that page in a table later, and should have one specific page per app – as a focal point.