hammerspoon2-docs
    Preparing search index...

    Interface HSAXRange

    A range of characters in an element's text, e.g. its selection (AXSelectedTextRange). Ranges count UTF-16 code units, like JavaScript string indexes

    interface HSAXRange {
        length: number;
        location: number;
    }
    Index
    length: number

    The number of characters in the range

    location: number

    The index of the first character in the range