• 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 and Offset Peculiarities ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Text and Offset Peculiarities ???
      • From: Michael D Mays <email@hidden>
  • Prev by Date: Re: Simple script doesn't work
  • Next by Date: Re: Simple script doesn't work
  • Previous by thread: Re: Text and Offset Peculiarities ???
  • Next by thread: Re: Text and Offset Peculiarities ???
  • Index(es):
    • Date
    • Thread