hammerspoon2-docs
    Preparing search index...

    Function pathToBookmark

    • Encode a file path as a persistent bookmark that survives file moves and renames. The returned string is base64-encoded bookmark data that can be stored and later resolved with pathFromBookmark.

      Parameters

      • path: string

        Path to the file or directory. ~ is expanded.

      Returns string | null

      Base64-encoded bookmark string, or null on failure.