Re: text 1 thru the result
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