Re: Tex-Edit add line endings appending cr
Re: Tex-Edit add line endings appending cr
- Subject: Re: Tex-Edit add line endings appending cr
- From: Walter Ian Kaye <email@hidden>
- Date: Sat, 27 Sep 2003 16:45:43 -0700
At 03:48p -0600 09/27/2003, Robert Poland didst inscribe upon an
electronic papyrus:
I'm trying to create a script to modify a web page. I want to change:
<CENTER><FONT SIZE="+2">
Revised 9/23/2003
</FONT>
to:
<CENTER><FONT SIZE="+2">
Revised todays date
</FONT>
The following does everything except it moves the last line to after
the 2nd line ie.
<CENTER><FONT SIZE="+2">
Revised todays date </FONT>
Down the road this will cause problems.
I think I'm having syntax problems with the statement "add line
endings appending cr". It works, except it puts the cr in the wrong
location. How do I deal with that?
Will deal with the date format later.
Why not do something much simpler? Tex-Edit supports wildcards:
set myDate to (current date) as short date
tell application "Tex-Edit Plus"
tell window 1
replace looking for "Revised^*^c" replacing with "Revised " &
myDate & "^c"
end tell
end tell
(watch wrapped line above)
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.