• 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: text 1 thru the result
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text 1 thru the result


  • Subject: Re: text 1 thru the result
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 06 Dec 2010 13:08:45 -0600

This is not just a problem with text. It is a more general problem with lists.
A small change to the original script yields this ...

property testList : characters of "abcdefghijklmnopqrstuvwxyz" -- a list of characters

-- test 1
set n to (-10 as integer)
items 1 thru n of testList --> {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q"}

-- test 2
(10 as integer)
items 1 thru -(the result) of testList --> {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q"}

-- test 3
(-10 as integer)
items 1 thru (get the result) of testList --> {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q"}

-- test 4
(-10 as integer)
items 1 thru (the result) of testList --> Can’t get 1 {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"} thru -10 of item.

It has exactly the same problem.

 _______________________________________________
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

  • Follow-Ups:
    • Re: text 1 thru the result
      • From: Mel Charters <email@hidden>
    • Re: text 1 thru the result
      • From: "Mark J. Reed" <email@hidden>
References: 
 >text 1 thru the result (From: Luther Fuller <email@hidden>)
 >Re: text 1 thru the result (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: text 1 thru the result
  • Next by Date: Re: text 1 thru the result
  • Previous by thread: Re: text 1 thru the result
  • Next by thread: Re: text 1 thru the result
  • Index(es):
    • Date
    • Thread