Applescript, slightly off-topic...
Dale Pond
dalesvp at qwest.net
Mon Sep 1 14:11:00 EDT 2003
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
tkuypers at pandora.be 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/
More information about the use-livecode
mailing list