Link to New… Ulysses

I can’t believe you made that work, stevelw, you’re a hero for trying figuring this out and hacking it together

  1. $link should be replaced with the URL with “$$$” and the title of the document encrypted in base 64 appended to it
    e.g. “hook://ulysses/nZ1PkBDwaIySNPSh0zN_TA$$$VGVjaG5vcGhvYmlh”
    “hook://ulysses/nZ1PkBDwaIySNPSh0zN_TA” is the link
    “$$$” is just a separator to make it easy to parse
    “VGVjaG5vcGhvYmlh” is the title of the linked doc, encoded in base64
    In my experience though, Ulysses ignores the extra characters and opens these links, so something else might be going on. How do the links differ from links you get with “Copy as Link”?

  2. Unfortunately, there is no way to call one script from within another. The only way we could do that is text substituting the whole script for $get_address and that would probably serve your purposes, but it would make all kinds of new scripting bugs possible or likely, such as mismatches of scope, and duplicate variable names, and nested substitutions.

1 Like