Hi, Imported images in my target document are contained within a single-cell table. The brief was to create a script that would modify the column width of the...
Hi Mike, I am not exactly sure what the answer is but I will tell you how I would troubleshoot it. I would pick one graphic that has been resized and one that ...
Nancy, You are missing one thing when you insert the cross-reference: you need to set the XRefSrcFile property to the absolute path of the other document. New...
1964
eric.dunn@...
Mar 1, 2002 6:11 pm
How can I find what page an object is on? I had been using Find TextRange(vTopElemTextRangeEnd) ScrollTo; Where vTopElemTextRangeEnd is the end of the text...
Eric, There is a Page property that works with some objects, for example paragraphs and graphics. I don't know if it works with Elements or not. Set vPgf =...
1966
eric.dunn@...
Mar 1, 2002 6:48 pm
... Sorry to sound dense, but where is this documented? If I have the Textloc for where I want to determine the page number will your approach work? If I go by...
1967
eric.dunn@...
Mar 1, 2002 6:56 pm
Found the documentation. Now why couldn't these properties be listed with each of the objects to which they apply? ARRRRGGHHHHH!! So if I get the texlocation...
For a TextLoc you can get a list of TextProperties, get the TextFrame, and then the Page. Set vCurrentDoc = ActiveDoc; Set vTextLoc =...
1969
eric.dunn@...
Mar 1, 2002 9:22 pm
Thank you very much. That should be exactly what I need to do. Using the paragraph object was causing me problems. The problem with the SGML is that end tags...
1970
eric.dunn@...
Mar 1, 2002 9:34 pm
Here's what I'm using now: Set vCurrentDoc = ActiveDoc; Set vTopElem = vCurrentDoc.MainFlowInDoc.HighestLevelElement; Set vTextLoc = vTopElem.TextRange.End; ...
Eric, For some reason when you get text properties, they don't keep the document portion of the object so you have to stick it back on using the .Doc property....
Script fiddlers: Is there any way to change the value of a list member? For example, new stringList newVar(vList) value('Ted') value('Vera'); Is there any...
Hedley, Take a look at the Replace Member command on page 124 of the Scriptwriters Reference. There are two ways to replace: by position and by value. There is...
... any ... That ... Scriptwriters ... (page ... And there are also Add Member, p. 14, and Find Member In List, p. 44. Would you believe I scanned the Contents...
Hedley, You can do all normal list operations: Add: Add Member(member) To(list) [Before(num) | After(num)]; Delete: Remove Member[(member)] [Number(num)]...
How can I 'apply a rowfomrmat' using framescript. When setting: RowKeepWithNext = 1 the rowformat is changed but I still have to open the RowFormat window and...
Rick- Thanks very much, that was indeed the problem. One small correction: I found what works is 'XRefFile' (rather than 'XRefSrcFile', as in: New XRef...
1978
alpoelma
alpoelma@...
Mar 6, 2002 7:57 am
I do greatly appreciate your script to create the table with all the FrameMaker f-codes. By the way I'm looking for a means to automatically structure ...
You won't believe this but, add this after Set vRow.RowKeepWithNext = 1; Update Hyphenating; If you are doing it on a document that is not the ActiveDoc, use...
Thanx Rick, Tried this and it get the job done. Don't quite get why I have to update Hyphenating to apply RowFormats, but it works. Greetz, Tim. ... Van: Rick...
1981
eric.dunn@...
Mar 6, 2002 4:08 pm
Here's an interesting situation and I suppose a FrameScript 'Feature': Initially I had a script with one subroutine and two external scripts with one ...
I guess the Update Hyphenation command does the same as Execute Fc KbdReformatDoc; This does more than KdbRefreshWin (aka as Ctrl+L) and I learned it is ...
Hi FrameScripters, I was just wondering if anyone knows of a way to batch compile scripts? Thanks, Martin R. Smith Manager, Technical Writing Encorp, Inc. ...
Hi, I have an existing frame document. Have to import some WMF files by reference and scale them. How do I get the anchored frame object of the imported...
Hello Gerhard, I am a FrameScript newbie, but this is one script I have managed to create which may help you. It scrolls through a file and provides the option...
Gerard, This isn't exactly what you're looking for, since I import by copy, always from an "Images" folder, and always size to 6.5" wide, but it should give ...
Thanks Elizabeth, that did it. I didn't know about the "FirstSelectedGraphicInDoc" function... BTW I've read most of the FrameScript documentation (except for...
Hello! I can't find in documentation if it is possible to check result of "Save Document": is it completed successfully or not? Thank you in advance. Bye! -- ...
You need to set the ErrorCode variable to 0 (zero) and then check it after the save. Set ErrorCode = 0 Save Document DocObject(ActiveDoc); If ErrorCode not= 0 ...