On 11/15/04 9:36 PM, "Scott Haneda" <[EMAIL PROTECTED]> wrote:

> on 11/15/04 7:44 PM, Paul Berkowitz at [EMAIL PROTECTED] wrote:
> 
>>     set theText to content of window 1
>>     set AppleScript's text item delimiters to {"  "}
>>     set chunks to text items of theText
>>     set AppleScript's text item delimiters to {" "}
>>     set theText to chunks as Unicode text
>>     set content of window 1 to theText
> 
> Just to satisfy my curiosity, I assume AS has a replace() function of some
> sort, why did you opt to set the delim to "  " and then change the delim to
> " " rather than just running a replace() on the entire string?

Why do you assume that 1) AppleScript has a replace() function of some sort*
and 2) I don't know what I'm talking about?

If you'd like to go to the trouble of installing a 3rd-party scripting
addition that has a replace function ((Scripting addition commands are not
followed by double parentheses() ), I can recommend one to you. I don't
assume that everyone has the osax in question.

-- 
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Microsoft Office you are using -
**2004**, X  or 2001. It's often impossible to answer your questions
otherwise.


-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to