• 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: Converting a nested list to return delimited string with TIDs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Converting a nested list to return delimited string with TIDs


  • Subject: RE: Converting a nested list to return delimited string with TIDs
  • From: "Destrebecq, Olivier" <email@hidden>
  • Date: Thu, 7 Jun 2001 09:01:40 -0500

I don't know what is TIDs, but here is a way that worked for me.
you can set the applescript text delimiters to "\r" (carriage return), and
you'll get the list as text with caarriage return in between list item.

set LineList to YourList
set AppleScript's text item delimiters to "\r" repeat with CurrentLine from 1 to length of LineList set item CurrentLine of LineList to item CurrentLine of
LineList as text end repeat
--you now have a list like that {"aa\rbb\rcc", "dd\ree\rff"}
set AppleScript's text item delimiters to "\r\r"
set CellListAsText to LineList as text
--CellListAsText is of the form {"aa\rbb\rcc\r\rdd\ree\rff"}
> ----------
> From: Ehsan Saffari
> Sent: Wednesday, June 6, 2001 23:54
> To: AS Users
> Subject: Converting a nested list to return delimited string with
> TIDs
>
> I have a nested list:
>
> {{"aa","bb","cc"},{"dd","ee","ff"}}
>
> and I want to convert it to:
> "aa"
> "bb"
> "cc"
>
> "dd"
> "ee"
> "ff"
>
> is this possible with TIDs? I've already done this with a repeat loop,
> but can't figure out if TIDS can be applied to a list.
>
> TIA
> ehsan
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Prev by Date: Re: Akua Sweets bug? encode <hex string> from hexadecimal
  • Next by Date: Re: carriage return & line feeds
  • Previous by thread: Re: Converting a nested list to return delimited string with TIDs
  • Next by thread: Re: Converting a nested list to return delimited string with TIDs
  • Index(es):
    • Date
    • Thread