• 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: applescript-users digest, Vol 2 #766 - 16 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 2 #766 - 16 msgs


  • Subject: Re: applescript-users digest, Vol 2 #766 - 16 msgs
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 17 Jun 2001 08:41:22 +1000

On 16/6/01 7:33 PM +1000, email@hidden, email@hidden, wrote:

> I can't seem to figure out how
> to eliminate the carriage returns which go with the deleted words. (The doc
> contains a list of words, each followed by a carriage return - this script
> eliminates the word, but leaves a blank space between the surrounding items
> in the list).

Delete them separately. There are several ways of doing this, including:

set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {return}
tell application "Tex-Edit Plus"
tell document 1
set contents to (every paragraph whose length  0) as text
end tell
end tell
set AppleScript's text item delimiters to oldDelims

--
Shane Stanley, email@hidden


References: 
 >Re: applescript-users digest, Vol 2 #766 - 16 msgs (From: email@hidden)

  • Prev by Date: Synchronize Folders - A Script
  • Next by Date: Copying Resource Files ???
  • Previous by thread: Re: applescript-users digest, Vol 2 #766 - 16 msgs
  • Next by thread: Info for question
  • Index(es):
    • Date
    • Thread