That would work - if there was such a thing as a script list, which unfortunately there isn't.
One way you could do it though would be to use a script dictionary and a
string list. When adding to the script dictionary, add the key to the string list as well. Or alternatively, populate the string list at the required time using something like this:
keys = NewStringList()
foreach (item, my_string_dictionary) {
list add (keys, item)
}