text 1 thru the result
text 1 thru the result
- Subject: text 1 thru the result
- From: Luther Fuller <email@hidden>
- Date: Mon, 06 Dec 2010 08:54:50 -0600
I encountered a problem with this yesterday.Here's an example script ...
property testString : "abcdefghijklmnopqrstuvwxyz"
-- test 1 set n to (-10 as integer) text 1 thru n of testString --> "abcdefghijklmnopq" correct
-- test 2 (10 as integer) text 1 thru -(the result) of testString --> "abcdefghijklmnopq" also correct
-- test 3 (-10 as integer) text 1 thru (the result) of testString --> error: Can't get 1 "abcdefghijklmnopqrstuvwxyz" thru -10 of text.
It seems that if (the result) is used , then the minus sign must explicitly appear in the code. This seems odd. Perhaps there is a bug here?
|
_______________________________________________
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