I am attempting to do a shell script within my AppleScript where I grep a CSV file and it returns a list to my AppleScript.
For example, my CSV has lines
01,{"tacos","burritos"}
02,{"burgers","hot dogs", "corn dogs"}
my AppleScript is set as
set a to 01
set b to 02
set myMenu to do shell script "grep " & a & " [path to CSV] | cut -d ',' -f 2")
set menuChoice to (choose from list myMenu)
display alert menuChoice
When I do this, my choose from list displays as one item in the list that shows the menu items as a string, but I want them to be individual menu items.
Meaning my choose from list shows as:
{"tacos","burritos"}
Instead of:
tacos
burritos


set myMenu to run script myMenu, but the best way would be to restructure your file so you can just get the items without using the list syntax.