• 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
Carriage return hassles in Entourage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Carriage return hassles in Entourage


  • Subject: Carriage return hassles in Entourage
  • From: Dan Doughtie <email@hidden>
  • Date: Tue, 10 Feb 2004 23:46:33 -0500

I have an Applescript triggered by a rule in Entourage that removes unwanted
carriage returns at the end of each line. I use wildcards to replace
punctuation/carriage return combos, then strip out all carriage returns then
go back and replace the punctuation/carriage returns (assuming that a period
(question mark etc) followed by a carriage return is the end of a
paragraph.

Not 100% but close enough.

Then the script writes out a text file that an app monitors that inserts it
into a database. (the App is Mac based running on an XServe)

Generally the script has been agnostic between Mac, PC, HTML mail etc. Until
today. ASCII 13 and 32 both would generate carriage returns. But now a
return in the script (created by literally hitting return on the keyboard
and making sure that the tabs that usually come with it are removed)
generates an ASCII 32 and not a ASCII 13. No matter what kind of search and
replace I do within the script it comes out 32 and this messes up the
inserter. The unwanted carriage returns aren't touched so the unwanted
carriage returns are still there. I've tried using pure ascii characer calls
but didn't work. This script has worked flawlessly for months then bam.

The search and replace routines is based on apples generic
replace_chars(text, text) subroutine and their write file routine.

I'm running 10.3.2.

Anyway to force the various carriage returns from different OS's to be a
"Mac" carriage return?

Dan Doughtie
Augusta, GA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Carriage return hassles in Entourage
      • From: Graff <email@hidden>
    • Carriage return hassles in Entourage Update
      • From: Dan Doughtie <email@hidden>
  • Prev by Date: Distribution of Applications
  • Next by Date: Carriage return hassles in Entourage Update
  • Previous by thread: Re: Distribution of Applications
  • Next by thread: Carriage return hassles in Entourage Update
  • Index(es):
    • Date
    • Thread