Skip to content
Edith

Docs

Command reference

Crossway operations

Enable crossway, then use ed invoke. Crossway decides which browser opens links in Edith. A caller's explicit destination wins, then the chooser, the Option destination, the source's project, the first matching rule and finally the primary destination.

Preview, save and open

Terminal
ed invoke crossway crossway.readed invoke crossway crossway.preview --json '{"url":"https://example.com/?utm_source=synthetic","source":"edith"}'ed invoke crossway crossway.routing --json '{"enabled":true}'ed invoke crossway crossway.open --json '{"urls":["https://example.com/a","https://example.com/b"]}'ed invoke crossway crossway.project.launch --json '{"projectID":"PROJECT_ID"}'

crossway.read prints configuration and the installed browsers. To change rules or projects, edit that configuration and send it back whole with crossway.update, keeping its revision.

Operations

Operation Payload Result
crossway.read {}, or {"refreshBrowsers":true} to look for browsers again configuration and browsers
crossway.update A complete configuration with the revision it was read at The saved snapshot with the next revision
crossway.routing enabled The saved snapshot
crossway.preview url, optional source (edith or launcher), projectID, force, prompt original, url, target, reason, signed; nothing opens
crossway.open url or up to 32 urls, optional source, projectID, force, prompt requested, accepted, rejected
crossway.project.launch projectID requested, accepted, rejected

A configuration has enabled, cleanTracking, primary and alternative destinations, ordered rules, projects, sourceProjects (a project id for edith or launcher), shownBrowsers and revision. A destination has kind (system, chooser, application, copy or discard), bundleID, profile, privateWindow and newWindow. Missing fields take their defaults.

Errors

A save from an older revision fails with Link routing changed somewhere else. Reload the latest settings and save again. and changes nothing. A batch with one malformed URL opens nothing. An unknown source or operation is rejected. accepted counts requests macOS accepted, not pages that finished loading.