• 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: "Stockly, Ed" <email@hidden>
  • Date: Mon, 6 Dec 2010 13:24:17 -0600
  • Acceptlanguage: en-US
  • Thread-topic: text 1 thru the result

Title: Re: text 1 thru the result
items 1 thru ((the result) as integer) of testList

This works.

This rings a bell, I believe there are other cases where the result variable must be coerced to an appropriate class before it’s used.

FWIW, I tried running these test scripts on Script Debugger and it immediately crashed on the error line.

ES


On 12/6/10 11:16 AM, "Mark J. Reed" <email@hidden> wrote:

Incidentally, the minus sign has nothing to do with it; the same thing occurs with a positive value in the result:

property testList: "abcdefghijklmnopqrstuvwxyz"

(10 as integer)
text 1 thru result of testList

execution error: Can’t get 1 "abcdefghijklmnopqrstuvwxyz" thru 10 of text. (-1728)


 _______________________________________________
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: 
 >Re: text 1 thru the result (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: text 1 thru the result
  • Next by Date: Re: Question on Applescript setting Annotation for QT7
  • Previous by thread: Re: text 1 thru the result
  • Next by thread: Re: text 1 thru the result
  • Index(es):
    • Date
    • Thread