I wrote a script that adds a TopicAlias marker to each 1 Heading paragraph in a file. The marker text is the same as the heading text. I added a subroutine...
Hi, Finally a question which I am able to answer. Either delete the semicolon before "ReplaceAll". "ReplaceAll" belongs to the Get command. Or use this...
Hi Ava, You have an extra semicolon in the command. Remove the semicolon from the end of the first line. Get String FromString(vMarkerText)...
Rick Quatro
frameexpert@...
Apr 1, 2009 1:13 pm
8883
I'm working on a conversion script that among other things puts a lot of text in tables. When I copy the text into the tables, character formatting and Xrefs...
Thanks to you both. I thought these were two separate commands. The main part of the script is now: Loop ForEach(Pgf) In(vCurrentDoc) LoopVar(vPgf) If...
Ava, ... ReplaceAll(' ') With('_'); ... Additionally, you need to apply the text (vMarkerString) to the marker. Set vMarker.MarkerText = vMarkerString; Shorter...
Hi Benjie, Are you copying the text through the .text property? or are you actually cutting and pasting the text? To preserve the formatting and all other...
I can assign a value for text and an existing character format BoldOnly: Get... Set varformatname.fmt = '<BoldOnly>MyText'; Does not work however for the...
Hi Everybody, If I do the following to find the table anchors in a paragraph: Get TextList InObject(vPgf) NewVar(vTblList) TblAnchor; How do I then access the...
Never mind, I found the answer. Benjie Wolicki Senior Information Developer Service Automation, ESM BMC Software, Inc. ________________________________ From:...
Hello Smart Folks- I've been asked to as part of my PDF generation process to also create a standard document review message and attach the PDF. Is it possible...
Hi Chuck, You can do it using FrameScript's EActiveXObject object and Windows CDO messaging. CDO details are at http://www.paulsadowski.com/WSH/cdo.htm ...
Rick Quatro
frameexpert@...
Apr 2, 2009 5:25 pm
8893
I'm looking to do a find and replace for conditional text. I've assembled this script that preserves pre-existing conditions when conditions overlap on exactly...
... Here's one way to do it. It seems like there might be a more straightforward method. Basically, this does what you were trying to do, but uses two...
I would recommend two things: * Use '</>' instead of '<Default whatever...>'; this is a not so well known shortcut available since FrameMaker 6, or so.. * If...
Thanks Rick! Well... I'm not having any luck with this. No errors, but no emails either... :-) I was told by one of our UNIX hackers around here that he never ...
Ok... so I went a slightly different route with this since what I really wanted to do was use MS Outlook anyway. It seems to work great. Took a lot of poking...
Hello All, I am looking for a legal copy of Office 2007 Professional. If you have one and would like to exchange it for some FrameScript work, please let me...
Rick Quatro
frameexpert@...
Apr 6, 2009 2:53 pm
8899
Okay, so I'm an idiot--It turns out I forgot to ask for the next item in the list! This line: Get Member From(vTprops.InCond) NewVar(vCondInt); Should be: Get...
I'm expanding my script that adds TopicAlias markers and replaces all spaces with underscores. I want it to examine the text of each of these markers, count...
Hi Ava, I would probably use a simple function like this: Set sMarkerText = 'This_Is_Marker_Text_With_Underscores'; Display GetUnderscoreCount{sMarkerText}; ...
Rick Quatro
frameexpert@...
Apr 7, 2009 11:48 am
8903
Thanks, Rick. That's a clever approach. I'll tailor it to the script and see if it works. Ava...
Hi Ava, You could make this even more useful by making it into a more general function, where you could get the count of any character. Then you could use it...
Rick Quatro
frameexpert@...
Apr 7, 2009 2:21 pm
8905
This seems like a problem that must have a simple solution, but I can't seem to figure one out. I need to copy a graphic that is embedded (not imported by...
You would use the Copy Text and Paste Text commands like you do it manually. The term "Text" just means a text selection, that is you have to define a...
Hello Jeff, ... The "Copy Text" command does also work with selected graphics: //-- Select anything before running the script Set lvInsertIntoAFrame = False; ...
Hi Jeff, To copy something other than text, it has to be selected. So, assume that oGraphic is the graphic. Set oGraphic.GraphicIsSelected = True; ...
Rick Quatro
frameexpert@...
Apr 8, 2009 7:50 pm
8909
... Thank you all (did I mention how much I like this group?) : ) Seriously, I should have realized that I could just copy the text range including the anchor....