Re: Text and Offset Peculiarities ???
Re: Text and Offset Peculiarities ???
- Subject: Re: Text and Offset Peculiarities ???
- From: Nigel Garvey <email@hidden>
- Date: Mon, 16 May 2011 12:07:28 +0100
KOENIG Yvan wrote on Mon, 16 May 2011 09:42:52 +0200:
>> the op wrote : (text (myOffset - 1) of myText
>> see the -1, it takes not the last but the penultimate character of
>> the sentence.
>> The last character is the return… or \n.
>>
> text (myOffset -1) is the character just before the string "
>Departing 0"
>It's exactly what I did.
Also, just to be finicky:
1. 'text (myOffset - 1) of myText' is more correctly 'character
(myOffset - 1) of myText'.
2. \n is a linefeed. A return would be \r.
3. The OP said he saw "/n" in his Replies pane. That might be true,
since I can't get escaped line endings to appear in that pane even when
they're enabled.
NG
_______________________________________________
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