I occasionally need to get a list or lists, or a dictionary, from CSV text that contains two values per line. This shortcut gets one list:
One List from CSV.shortcut (21.9 KB)
The following shortcut gets two lists. The first Replace action returns a list of the text before the comma, and the second Replace action returns a list of the text after the comma.
Two Lists from CSV.shortcut (22.0 KB)
Getting a dictionary directly from comma- or tab-separated text is not possible, but this can be done with a JSON. My solution is kludgey, but I’ll work on this.
Dictionary from CSV.shortcut (22.3 KB)
I did not attempt to make a lists of lists, because it seems of little use in a shortcut.