• 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: search and replace in tex-edit +
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: search and replace in tex-edit +


  • Subject: Re: search and replace in tex-edit +
  • From: Philippe GRUCHET <email@hidden>
  • Date: Fri, 14 Feb 2003 00:08:27 +0100

From: fabrice <email@hidden>

You can also try this, without any break:
--
tell contents of window 1 of application "Tex-Edit Plus F"
activate
set color to black
set {sFont, sOnS, sSz, sCol, motClef, newCol} to {font, style, size, color, "le", blue}

replace looking for motClef replacing with motClef ,
looking for styles {font:sFont, style:sOnS, size:sSz, color:sCol} ,
replacing with styles {font:sFont, style:sOnS, size:sSz, color:newCol} ,
-- with cases matching
end tell
--


Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr

could you tell me what's wrong with that script:

tell application "Tex-Edit Plus F"
activate
set color of text of window 1 to black
set motClef to "le"
set newCol to blue
set sFont to font of text of window 1
set sOnS to style of text of window 1
set sSz to size of text of window 1
set sCol to color of text of window 1
replace looking for motClef ,
replacing with motClef ,
looking for styles ,
{font:sFont, style:sOnS, size:sSz, color:sCol} ,
replacing with styles ,
{font:sFont, style:sOnS, size:sSz, color:newCol} ,
--with cases matching

end tell
_______________________________________________
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.

  • Prev by Date: Re: MacOS X simple script error
  • Next by Date: Reply to "Re: Scripting with 'Internet Explorer'"
  • Previous by thread: Re: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)
  • Next by thread: Reply to "Re: Scripting with 'Internet Explorer'"
  • Index(es):
    • Date
    • Thread