I never understood :
I never understood :
What’s the difference between the label, and the Name?
I think (say if I’m wrong) that the name is constant over time and can’t be changed with script, and can’t display either. But the label can.
If I’m right, something I don’t understand, and should be in feature suggestions I think :
When we’re adding an action to open a folder, we need to select the label (which can be changed) ? Or the Name?
]]>(Next Post) reaLListiK for Kustom and LL »
< ![CDATA[
Both label and name can be changed by script.
Difference: label is shown, name is like a textual ID or key of an item.
Pierre added name as request by me, because I had multiple items showing the same text (label), so the old getItemByLabel function was not usable. Now items can have different names/keys that can be used by getItemByName, yet still have the same text/label.
]]>
< ![CDATA[
Open folder by script: getItemByName, then open.
]]>
< ![CDATA[
A label is the displayed text, while a Name is considered to be an unique ID.
Regarding that: Pierre Hébert I think Lightning should enforce the uniqueness of names, regardless of the method used to set them. (Sideeffect: LL.getItemByName() would eliminate the problems with LL.getItemById() when importing templates)
The name is not static and can be changed through script.
I didn’t get the part with the folder…
Edit: didn’t saw Lutz Linke s comments.
]]>
< ![CDATA[
Thanks Lutz Linke I see. As Lukas Morawietz said I think that would be good to use the name as a unique ID…
]]>
< ![CDATA[
Benoît de Chezelles
The Name is used as unique ID, the problem is: The user has to keep track if it is really unique.
]]>
< ![CDATA[
So there is no error when setting 2 identical name…
]]>
< ![CDATA[
Benoît de Chezelles
Yes, and you can’t be sure which one is returned by the methods.
]]>