For those interested, there is now information about using Framescript with FM 6.0 at http://www.frametools.com/q__a__framescript__frametools.htm FrameScript...
313
gblythe@...
May 11, 2000 2:40 am
I started out writing a simple script that would output all paragraph text in the same order within which it appears in a document. Simple you may say, well......
314
Marcus Streets
marcus@...
May 11, 2000 8:47 am
... The gettextlist can report tableanchors. So you need to iterate over all paragraphs getting the text from the paragraph and then before moving on to the...
315
Rick Quatro
rquatro@...
May 11, 2000 12:09 pm
Hi Graham, For each paragraph in the main flow, you have to get a textlist of table anchors in the paragraph. You can use something like this inside of your ...
316
Ryan Gibson
ryan@...
May 11, 2000 6:16 pm
All: I'm a FS newbie and a non-programmer by trade, so all apologies up front... I'm importing a bunch of docs from Word, and our table titles import into FM...
317
Rick Quatro
rquatro@...
May 11, 2000 11:13 pm
Hi Ryan, I might approach this from the other end; find the TableTitle paragraphs and then look for the preceding TableCaption. Loop ForEach(Tbl) In(ActiveDoc)...
318
Ryan Gibson
ryan@...
May 12, 2000 1:04 am
Scripters: Anyone familiar with the Tbl.NumTabs property? The docs are vague about what this means, and I can't get it to work as (I think it's) advertised. ...
319
Ryan Gibson
ryan@...
May 12, 2000 1:17 am
Rick, You are truly a master of your craft. This works perfectly. Thanks again. Ryan ... From: Rick Quatro [SMTP:rquatro@...] Sent: Thursday,...
320
Rick Quatro
rquatro@...
May 12, 2000 3:13 am
Ryan, My initial thought is to use parentheses around the If statements. If (vPara.FirstIndent = 0.3") AND (vPara.NumTabs = 1) Let me know if this doesn't do...
321
Ryan Gibson
ryan@...
May 12, 2000 3:48 pm
Rick, Nope, parentheses don't do the trick this time. I think I used this 'and' operator a few days ago and it worked fine and didn't require parentheses. ...
322
Rick Quatro
rquatro@...
May 12, 2000 5:00 pm
You are right about the NumTabs property. It returns the number of tab stops in the paragraph, not the number of tab characters in the paragraph. Here is a way...
323
Ryan Gibson
ryan@...
May 12, 2000 7:01 pm
Rick, Thanks again. And I guess I could Loop through each pgf with a counter to find the number of times that CHARTAB occurs in a pgf. I'll work on it. Ryan ...
324
Mike McGuire
mikem@...
May 12, 2000 7:03 pm
Hi, Is there a way to access the paragraph identifier that FrameMaker gives to each paragraph (in WebWorks, this is called the "autotag" number)? We're trying...
325
Rick Quatro
rquatro@...
May 12, 2000 7:11 pm
Hi Mike, This script will report the Unique Id (Autotag) of the paragraph at the current cursor location. Set vPgf = TextSelection.Begin.Object; Display...
326
Mike McGuire
mikem@...
May 12, 2000 7:14 pm
Hi Rick, Wow, less than a 10 minute response time--thanks! This should be just what we're needing. Mike ... the ... paragraphs ... projects at...
327
David Watts
dwwatts@...
May 15, 2000 6:39 pm
How do I determine the page number of the end of a paragraph? I know that the page number of the beginning of the paragraph is vPgf.page.PageNumString I...
328
Ryan Gibson
ryan@...
May 16, 2000 3:38 am
Rick, This is the script I wrote to check for the number of tabs (special string CHARTAB) in each paragraph--I'm actually kind of proud of myself that I could...
329
Rick Quatro
rquatro@...
May 16, 2000 1:06 pm
Ryan, Loops can be tricky. You want the loop to keep going as long as it needs to, but there has to be a reliable way to exit the loop when it's done. In your ...
330
Ryan Gibson
ryan@...
May 16, 2000 6:25 pm
What's going on when I get the following message: "FrameScript: Run Error (Missing Subroutine) on command (Run) At Line 64"? The Sub that the Run command is...
331
Rick Quatro
rquatro@...
May 16, 2000 6:32 pm
Ryan, Two things to check (besides spelling): 1) Make sure you have a corresponding EndSub statement at the end of the subroutine. 2) Make sure the statement...
332
Ryan Gibson
ryan@...
May 16, 2000 7:32 pm
And now I've got another one... Is there a way to find/search for strings using wildcards, which is allowed using the Find/Change dialog in Frame? I couldn't...
333
Rick Quatro
rquatro@...
May 16, 2000 8:19 pm
Hi Ryan, You can't use wildcards in strings like you can with the Find/Change interface. That is why I wrote the FindChangeBatch script. You can refer to that...
334
Bruce Ashley (EPA)
Bruce.Ashley@...
May 17, 2000 3:20 am
Regards, Bruce Ashley Technical Writer Ericsson Australia EPA/D/N (613) 9301 6200...
335
Philip Sharman
psharman@...
May 17, 2000 4:38 pm
I'm not sure if anyone's having trouble unsubscribing, but if you are... You should be able to unsubscribe by sending email to: ...
336
bradford@...
May 18, 2000 3:26 pm
The documentation on FS gets pretty sketchy in the area of EventScripts. I'm trying to create a script that will function with the keyboard shortcut "ESC+dr" [...
337
Rick Quatro
rquatro@...
May 18, 2000 5:13 pm
Hi Brad, I may need some more details about what you are doing, but here is the basic outline. First of all, you need to put your function in a named event...
338
Brad Engels
bradford@...
May 18, 2000 6:26 pm
AH...beautiful. I knew that the way I had been doing it...having the shortcut statement in the "Install Script" command was a bit flimsy. But I had run out of...
339
Larry Sherman
lsherman@...
May 25, 2000 2:58 am
Hi all, I'm working on a document which will have several hundred (400+) text frames, each one containing an anchored frame with a TIFF file in it. As I import...
340
Rick Quatro
rquatro@...
May 25, 2000 12:31 pm
Hi Larry, There is actually a problem with line 3 that has to be fixed first. You do not want to make a string variable in line 3, you want vGraphicParent to...
341
Larry Sherman
lsherman@...
May 25, 2000 6:47 pm
Hi Rick, Thanks very much. The Set command handles the problem nicely. The script now does exactly what I need, and I can automate almost all the task excepr...