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

Re: list manipulation


  • Subject: Re: list manipulation
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Sat, 15 Apr 2017 08:48:06 +0900

Thank you all.

On Apr 15, 2017, at 2:51, Ray Robertson <email@hidden> wrote:

Yvan and Chris answered well. Negative indexing and Shane’s utilities are great.

I knew about indexing, not about Shane's code.

I wanted to make sure you are familiar with list filtering by class:

I am not familiar with it :) Thank you.

set sampleList to {1, "some text", 45.5, 50, "more text"}
text of sampleList
reals of sampleList
integers of sampleList
numbers of sampleList

You can also use “some item of” if you want to get random…

Jean-Christophe 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >list manipulation (From: Jean-Christophe Helary <email@hidden>)
 >Re: list manipulation (From: Ray Robertson <email@hidden>)

  • Prev by Date: Re: list manipulation
  • Next by Date: Sorting characters of the text - script doesn't work as expected
  • Previous by thread: Re: list manipulation
  • Next by thread: Sorting characters of the text - script doesn't work as expected
  • Index(es):
    • Date
    • Thread