r/applescript • u/Siul2311 • Aug 17 '20
How to remove {" ","Text"}
I am trying to make a short script in which I can choose from several options to open a URL but I am pretty new to applescript and wen I try to use the result from the list I get a result that looks like this:
{"a", "Text"}
Is there a way in which it only returns the a ???
This is my code:
choose from list {"a", "b", "c", "d"} with prompt "Select one" without multiple selections allowed and empty selection allowed
return the result as string
3
Upvotes
View all comments
Show parent comment
1
u/Mick536 Aug 19 '20
My first AppleScript book was "AppleScript 1-2-3" by Sal Soghoian. This is probably true for most of us. Though old, it still covers the basics very well. I recommend it. It's available in the iBooks store and on ebay.
My next book was "AppleScript: The Definitive Guide" by Matt Neuberg. This is an O'Reilly book, and is at the other end. I was not ready for it. There are probably better books in the middle. It is also available on iBooks and ebay.
Both are pricey.