• 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: Simple character replacement question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple character replacement question


  • Subject: Re: Simple character replacement question
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 31 May 2007 15:16:45 +0200


Le 31 mai 07 à 14:42:35, Bernard Azancot a écrit :

Hello everyone !

After each OCR process, I use a simple vanilla homemade cleaning script to correct the recurring recognition mistakes.

I do not know why, in the text being saved under TextEdit, there is a useless space before each return.

So, I need to delete this space with this script.
What is the name to use for the return following the useless space, so that I can replace every 'space+CR' by 'CR'.
…

Hello

the variable offered by AppleWorks for CR is named "return"

This assumes that you get CR = ASCII code 13

if you get LF = ASCI code 10, as far as I know, there is no predefined variable. You may defined one in your script:

property LF : ASCII character 10

Yvan KOENIG

_______________________________________________
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: 
 >Simple character replacement question (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Re: Simple character replacement question
  • Next by Date: Fwd: Simple character replacement question
  • Previous by thread: Re: Simple character replacement question
  • Next by thread: Fwd: Simple character replacement question
  • Index(es):
    • Date
    • Thread