drummerSupport icon indicating copy to clipboard operation
drummerSupport copied to clipboard

The importance of <urlPublic>

Open scripting opened this issue 4 years ago • 0 comments

This is a note for the future.

In some ways this project is like Page Park was in 2014, when it was just starting up.

You try to create a framework that can grow, but you can't anticipate everywhere you'll want to go.

So there are anachronisms. You can't avoid them. Having spent a decade evolving Frontier's verb set and other features, you live with your mistakes. But if you catch them early, maybe you can fix it.

Subscribing to outlines

I'm probably going to change the name of the subscribe command to Open URL..

This is really what it's doing now. You just give it the URL of an OPML file, and if it has the right <head> elements, it subscribes to it. It's an ephemeral subscription, goes away when the file is closed, or the app quits.

The new rule

When you subscribe to a URL, the URL we actually subscribe to is the one in the <urlPublic> head element.

They had something like this in Atom, where the feed could say what its canonical name was.

I came to this because there are at least two names for GitHub-based outlines, and getting them all in sync was something I seemed to have to do periodically. You think you have all the conventions nailed down, but then you don't.

I think it's a no-brainer. I wish my brain had come up with this rule earlier.

Okay that's it. :smile:

scripting avatar Jul 26 '21 18:07 scripting