• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: String to list conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: String to list conversion
      • From: Gnarlodious <email@hidden>
    • Re: String to list conversion
      • From: steve harley <email@hidden>
References: 
 >String to list conversion (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: String to list conversion
  • Next by Date: Re: String to list conversion
  • Previous by thread: Re: String to list conversion
  • Next by thread: Re: String to list conversion
  • Index(es):
    • Date
    • Thread