Don't know about AppleScript but here is a Rev script that works:

 -- find and delete eol returns
 repeat
   get offset(RETURN, cd fld Text1)
   if it = 0 then exit repeat
   put " " into char it of cd fld Text1
 end repeat


[EMAIL PROTECTED] wrote:


Could anyone tell me how to search for 3 returns in a textfile and replace
them by 2 returns...

I am using Revolution, to do some automated layout in Adobe InDesign, but
canıt seem to find how to use special characters in a search and replace
string using AppleScript...

When using the following script, InDesign "unexpectedly quits"...

tell application "InDesign 2.0.2"
   set find preferences to nothing
   set change preferences to nothing
   tell active document
       set vSearch to return & return & return
       set vReplace to return & return
       search for vSearch in active document replacing with vReplace
   end tell
end tell

Any other search & replace works fine, but how do I get rid of those
returns?

Any help is welcome, Iım afraid the guys on the Adobe list are sleeping, no
reply there at all :-((

Many thanks in advance,

Ton Kuypers





--
Life, Light, Love and Laughter,
Dale Pond
Sympathetic Vibratory Physics
Sacred Science - Sacred Life
http://www.svpvril.com
SVP Discussion Forum:
http://groups.yahoo.com/group/svpvril/



_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to