• 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: Brian Johnson <email@hidden>
  • Date: Mon, 13 Sep 2004 21:21:39 -0700 (PDT)


If I understand correctly, you can just ...

 set x to "{\"Verdana\",\"b\",12,{30583,30583,30583}}"
 set t to run script x

If the x string was typed in

 set x to text returned of (display dialog " and..." default answer "")

it works too.

 Brian Johnson, Dept of Architecture, University of Washington, Seattle

On Mon, 13 Sep 2004, Gnarlodious wrote:

Say I have an unquoted string direct from a shell script:
{"Verdana","b",12,{30583,30583,30583}}

and I want a list:
{"Verdana", "b", 12, {30583, 30583, 30583}}

How to?

-- Gnarlie

_______________________________________________
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

_______________________________________________
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>
References: 
 >String to list conversion (From: Gnarlodious <email@hidden>)

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