• 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
List appending question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

List appending question


  • Subject: List appending question
  • From: kai <email@hidden>
  • Date: Tue, 12 Aug 2003 00:38:11 +0100

on Mon, 11 Aug 2003 18:54:50 -0400 (EDT), Chris Backas
<email@hidden> wrote:

> I've got two lists, and I'd like to put the contents of on list into the other
- however, not in the appending way.
>
> ListA = {}
> ListB = {"Some Stuff","Some Other Stuff"}
>
> I would like to make ListA become {{"Some Stuff", "Some Other Stuff"}} Rather
than taking all ListB's value's and appending them to ListA.
>
> What's the proper syntax for this?

set ListA to {}
set ListB to {"Some Stuff", "Some Other Stuff"}
set ListA's end to ListB
ListA

--> {{"Some Stuff", "Some Other Stuff"}}

---
kai
_______________________________________________
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.

  • Prev by Date: Mail.app the iChat scripting..
  • Next by Date: Re: Mail message
  • Previous by thread: Re: List appending question
  • Next by thread: Mail.app the iChat scripting..
  • Index(es):
    • Date
    • Thread