• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tex-Edit add line endings appending cr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Tex-Edit add line endings appending cr
      • From: Walter Ian Kaye <email@hidden>
References: 
 >Tex-Edit add line endings appending cr (From: Robert Poland <email@hidden>)

  • Prev by Date: RE: Bug in (scripting) Excel
  • Next by Date: Re: Tex-Edit add line endings appending cr
  • Previous by thread: Tex-Edit add line endings appending cr
  • Next by thread: Re: Tex-Edit add line endings appending cr
  • Index(es):
    • Date
    • Thread