I would like to set a “Name” for items.

I would like to set a “Name” for items. IDs are too dynamic, label is not always unique. Using tags is possible, but complicated. Would allow finding by script function i.e. GetItemByName.

Example: I have multiple shortcuts acting as checkboxes through icon-font based, so label is “x”=checked, “o”=unchecked. Currently use cell’s X/Y to determine item.

]]>

6 Commentsto I would like to set a “Name” for items.

  1. Anonymous says:

    < ![CDATA[

    (Off topic)


    Lutz Linke, in the users community there is someone having problems with one of your themes.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    TrianguloY Read it, but comments are disabled, cannot rely there. But will soon. Busy on vacation, almost offline, bad 2G/3G.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    I previously hit the problem too. Probably the current label for non shortcuts items should be migrated/copied to name then.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Pierre Hébert Good idea. If no “name” is specified >> use label. If custom label/name (like for containers) under “+” tab is set, use that one. That way scripting API would remain as is (GetItemByLabel).

    ]]>

  5. Anonymous says:

    < ![CDATA[

    The issue is that shortcuts need two methods setName and setLabel, and keeping a single getItemByLabel method is confusing. Having two method byName and byLabel is also useless because there is no probably need to look for a shortcut whose label is different from the name.


    A clean API change would break existing scripts, that’s annoying. I should have anticipated this.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Well, I will introduce getItemByName and related functions, make the getItemByLabel deprecated and it will return the same thing as getItemByName. Scripts will continue to work as they are, but new scripts should not use the deprecated getItemByLabel anymore.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *