wrapping text in Tex-Edit Plus?

Hi all, I have a script from OS 9.2.2 for Tex-Edit Plus that still wraps the text on Tiger… but if I open the script and re-save it, it does nothing (that’s strange to me).
I would like to use the wrap in a new script I have wrtten.
Here’s the old script…

tell application "Tex-Edit Plus"
 activate
 
-- more stuff here
 
-- note: 'replace looking for' and 'replacing with' is still in the Dictionary

 replace looking for "
" replacing with " "
end tell

Any and all help is very much appreciated!

Tom

Browser: iCab/4.1.1
Operating System: Mac OS X (10.4)

Try this. When you compile the “\r” will wrap the text.

tell application "Tex-Edit Plus"
	activate
	
	tell document 1
		
		replace looking for "\r" replacing with " "
		
	end tell
end tell

Hi Craig, Yes, using “\r” does the trick. How did you ever figure that one out?

Thanks a bunch!

Tom

My wife calls my computer, “His square headed girlfriend.”

Guess I spend too much time with her! :smiley:

Cheers!

Craig

Hi Craig, This is getting strange. I ran you code and it worked as I said and then I saved it without really looking at it.
Later I ran the script again and it didn’t work.
When I opened the script, here’s how it compiled.

tell application "Tex-Edit Plus"
	activate
	
	tell document 1
		
		replace looking for "
" replacing with " "
		
	end tell
end tell

Any ideas on a workaround?

Thanks,

Tom

Browser: iCab/4.1.1
Operating System: Mac OS X (10.4)

Try this instead.

tell application "Tex-Edit Plus"
	activate
	tell document 1
		replace looking for return replacing with " "
	end tell
end tell

Cheers,

Craig

or …

replace looking for "^c" replacing with " "

or

replace looking for (ASCII character 13) replacing with " "

Hi Craig and clemhoff, Now I have three ways to wrap the text and all three compile just fine. :smiley:

I appreciate the help from both of you… Thank you!

Tom

Operating System: Mac OS X (10.4)