Re: switching text delimiters (was: email@hidden)
Re: switching text delimiters (was: email@hidden)
- Subject: Re: switching text delimiters (was: email@hidden)
- From: kai <email@hidden>
- Date: Tue, 26 Oct 2004 01:31:59 +0100
On Sun, 24 Oct 2004 21:53:50 -0700, Michelle Steiner wrote:
On Oct 24, 2004, at 8:30 PM, doug rogers wrote:
set AppleScript's text item delimiters to {return}
set TheItems to text items of TheItems
[snip: more code]
There is a mismatch between Applescript's value of return being ascii
13 and the return in your source text (which can be as easy as typing
the return key within a script) being ascii 10.
Quite. In this kind of situation, one good reason for using 'paragraphs
of...' (or 'every paragraph of...') is that it should work whether the
incoming string's paragraph delimiters are defined as ASCII character
13 or ASCII character 10 (or even a mixture).
In addition, 'paragraphs' is considerably faster than 'set TIDs/get
text items' (about 5 times faster here).
---
kai
(Whose initial reply was to a message viewed on the web archive - where
email addresses are hidden - hence the original subject ref
"email@hidden" rather than "email@hidden". Just
in case anyone was wondering.) :-)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden