• 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
adding to a list selected from a list of lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding to a list selected from a list of lists


  • Subject: adding to a list selected from a list of lists
  • From: paul withey <email@hidden>
  • Date: Tue, 19 Feb 2002 10:39:23 +0000

hi all,
i am a newbie scriptor playing around with mainly with itunes and
was wondering i anyone can help with this small problem i am having with
a script i am working on...

I would like a user to be able to add a text string to one of a group of
existing lists and thought of something along these lines would work...

list1 = {"1","2","3"}
list2 = {"3","4","5"]
the_lists = {"list1","list2"}

display dialog " what would you like to add ?" default answer ""
copy the text returned of the result as string to end of (choose from
list the_lists with prompt "where would you like to add the slice ?")

when run, with the user entering "test" and selecting list2 rather than
resulting in list2 = {"3","4","5","test"} as required,
the result is {"list2","test"}

where did it all go pete tong ?

Also, as an aside, does anyone know of a good site with examples of
scripts for osX's Mail application ?

thanks in advance...

paul

'against one perfect moment, the centuries beat in vain'
_______________________________________________
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: adding to a list selected from a list of lists
      • From: Ric Phillips <email@hidden>
    • Re: adding to a list selected from a list of lists
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Editing aetes
  • Next by Date: Re: preflighting a file
  • Previous by thread: RE: Editing aetes
  • Next by thread: Re: adding to a list selected from a list of lists
  • Index(es):
    • Date
    • Thread