Re: String to list conversion
Re: String to list conversion
- Subject: Re: String to list conversion
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 13 Sep 2004 21:24:38 -0700
On 9/13/04 9:07 PM, "Gnarlodious" <email@hidden> wrote:
> Say I have an unquoted string direct from a shell script:
> {"Verdana","b",12,{30583,30583,30583}}
What's an "unquoted string". All strings in AppleScript are surrounded by
quotes, including all those coming from 'do shell script'. If you mean
you're "getting it" in Terminal, how do you propose top transfer it to
AppleScript? Via the clipboard? Or how?" However you do it, it will turn
into a "quoted" string (either a string, or Unicode, in quotes), complete
with escaped internal quotes.
>
> and I want a list:
> {"Verdana", "b", 12, {30583, 30583, 30583}}
>
> How to?
The usual way. Since that "string" will actually be:
"{\"Verdana\", \"b\", 12, {30583, 30583, 30583}}"
the simple way would be to
run script "{\"Verdana\", \"b\", 12, {30583, 30583, 30583}}"
--> {"Verdana", "b", 12, {30583, 30583, 30583}}
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden