Re: Align numbers along decimals/assumed decimals
A couple of things you can do here. First, you can do this on line 16: textRange.end.offset = Constants.FV_OBJ_END_OFFSET - 1; Then you don't need line 21. The second part should be easy; like Jang...
View ArticleRe: Align numbers along decimals/assumed decimals
Instead of the Find method, I would cycle through all the cells in a table and use the GetText on the paragraphs in those cells. That allows you also to optimize the code: when you find a cell with a...
View ArticleAlign numbers along decimals/assumed decimals
I am looking for/trying to write a script to align decimals (and assumed decimals) in a table. FrameMaker does not align a column of numbers in a table to the decimal/assumed decimal. Instead, numbers...
View ArticleRe: Placement of anchored frame fails
Well, it turns out that things work correctly, if I assign SideOffset as the last property ... function CreateAFrame (oDoc, kAnchor, kAlign, width, height, offset) { var CM = 1857713; oUserLoc =...
View ArticleRe: Placement of anchored frame fails
Yes, Klaus, I have noticed this - and immedately create a PDF just in case.... But this is more important: it is not the inner gutter, but any placement to the left of the page (right page: close to...
View ArticleRe: Placement of anchored frame fails
Hi Klaus, I hope, you have noticed this: FrameMaker ScriptingWe are excited to announce we will be delivering a modern community experience to you in the very near future! For our Creative Cloud,...
View ArticleRe: Placement of anchored frame fails
Further tests show the following:All anchor types placing the frame at the inner gutter are affected by this problem: FV_ANCHOR_SUBCOL_LEFT, FV_ANCHOR_SUBCOL_NEAREST, FV_ANCHOR_SUBCOL_INSIDE,...
View ArticlePlacement of anchored frame fails
"Wecome back my friends to the show that never ends" (don't know from which TV show that is, have no TV).I want to place an Anchored Frame, type "Outside TextFrame".Placing the frame with the UI is ok...
View ArticleRe: First run of XSLTRunTrScenario is slow
At the first run of your session, the processor needs to be loaded and this takes time. You could do an identity transform on a small XML file on startup, but you may run the risk of the script being...
View ArticleFirst run of XSLTRunTrScenario is slow
Hi, I am using XSLTRunTrScenario with ExtendScript's CallClient to transform some XML data before using it in a script. The first run of the script is very slow; I am not sure if it is loading the...
View ArticleRe: To select all overflow text frames in framemaker using script.
Hi,I need convert this code to extendcript.Please suggests if any ideas.Set vCurrentDoc = ActiveDoc Set vPgf = vCurrentDoc.FirstPgfInDoc;Set vStop = 0; //Stop when first overflow found Loop...
View ArticleRe: To select all overflow text frames in framemaker using script.
What have you been trying to do so far? Show us some code snippets, that you have created yet.
View ArticleTo select all overflow text frames in framemaker using script.
Hi,How to select all overflow textframes in framemaker using script and get the page number for all overflow texframe in framemaker ?Please suggests if any ideas.
View ArticleRe: How to define a colour?
Many thanks, Klaus - this really works.Yes, I did the tests not in a new document - so the colour was defined already... Now I even found colours named "[object PropVal]" and "undefined". Always...
View ArticleRe: How to define a colour?
"Da ist wohl hopfen und malz verloren" as we say in German (I guess that's hops and malt are lost).Hi Klaus,we also say: " Du siehst den Wald vor lauter Bäumen nicht" (You missed the forrest for the...
View ArticleRe: How to define a colour?
"Da ist wohl hopfen und malz verloren" as we say in German (I guess that's hops and malt are lost).Based on the above findings I tried various things - with no positive results: // DefineColour3.jsx...
View ArticleRe: How to define a colour?
Analysing the problem I inspect an existing coloured object with the following script: function GetColourProps (oColour) { var PERCENT = 65536, j, n, oColour, aPropVals, oPropVal, aNewPropVals = [];...
View ArticleHow to define a colour?
Dear wise women and men!I definitely have not understood the concept of GetProps and SetProps...It tried to define a new colour by this function and found that no property is set all (inspecting the...
View Article