How to reorder the returned output separated with commas & quotes?

Hi there,

do shell script "command1"

I have a simple command1 that returns the output as below:

Apple
Orange
Mango
Banana

However, I’d like the output to be returned as:

{“Apple”, “Orange”, “Mango”, “Banana”}

How do I approach this in Applescript?

Thank you in advance.

Model: MacBookPro 6,2
AppleScript: Version 2.10 (194)
Browser: Safari 537.36
Operating System: Mac OS X (10.13 Developer Beta 3)

Hi.

paragraphs of (do shell script "command1")

Wow! That worked like a charm. Thank you so much Nigel :smiley:

Model: MacBookPro 6,2
AppleScript: Version 2.10 (194)
Browser: Safari 537.36
Operating System: Mac OS X (10.13 Developer Beta 3)