Fixing “title” vs “name” in Chrome

I’m planning to fix the aelint issue with Chrome:

X ERROR (1)
----------------------------------------
  ambiguous-code: Code 'pnam' is used by multiple terms: property 'name', property 'title'
    AppleScript maps a code to one name when decompiling a raw Apple Event; multiple names are ambiguous

Is it as simple as changing

      <property name="title" code="pnam" description="The title of the tab." type="text" access="r"/>

to

      <property name="title" code="Titl" description="The title of the tab." type="text" access="r">
        <!-- Synonym for compatibility with old scripts. -->
        <synonym code="pnam" hidden="yes"/>
        <cocoa key="title"/>
      </property>

or is it more complicated? I don’t want to break compatibility of the scripts out there and while fixing it would be preferable I’d rather not if it broke things.

Thanks!

Yes, your proposed change is correct, though I would remove the synonym-if they are synonyms, why are they different? Is there sufficient reason to define a new term rather than using the system provided (name) term.

Hmmmm. I was about to say “because tabs have titles, not names”, since the <title> tag means that website names have always been referred to as “titles”, but that’s circular. And meanwhile, the Chrome bookmark editor does refer to the names as “name” so there’s that.

The main objection that I have to removing the synonym is compatibility.

If I were to go with 'pnam' and call it “name”, then compiled scripts would continue to work, but I’d break all non-compiled scripts as well as web examples, so that doesn’t seem like a great direction. I could make “title” a synonym to save old non-compiled scripts, but at that point we have a synonym anyway, and then we might as well just keep “title”.

Sigh, you’re right. Let’s just call everything “name” and set up the synonyms.

Thank you!