Re: applescript-users digest, Vol 2 #766 - 16 msgs
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