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?
-- 
-------------------------------------------------------------
Scott Haneda                                Tel: 415.898.2602
<http://www.newgeo.com>                     Fax: 313.557.5052
<[EMAIL PROTECTED]>                          Novato, CA U.S.A.


-- 
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