• 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: Flattening a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flattening a list


  • Subject: Re: Flattening a list
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 16 May 2004 03:45:36 -0700

On May 15, 2004, at 10:16 PM, Joseph Weaks wrote:

"Better" is somewhat subjective, but how 'bout this:

set variable to "zzz"
set a to {{1, "z", 3}, {variable, "b", "c"}, {5, "text", variable}}
set AppleScript's text item delimiters to "%"
set a to text items of (a as string)
set AppleScript's text item delimiters to ""

Nope; it turns the numbers into strings. It will change anything to a string; if the first line is

set variable to alias "Disk:folder:file"

The alias is changed to a string.

-- Michelle

--
The problem with political jokes is that too many of them get elected.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Flattening a list
      • From: Joseph Weaks <email@hidden>
References: 
 >Flattening a list (From: Michelle Steiner <email@hidden>)
 >Re: Flattening a list (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: Darmouth
  • Next by Date: Set/get Xpress 4.1 styles?
  • Previous by thread: Re: Flattening a list
  • Next by thread: Re: Flattening a list
  • Index(es):
    • Date
    • Thread