Re: Framescript: search and replace condition name in a bunch of mif files
Hi Jang, Thank you for your response. Interestingly enough, FM allows changing the Track Changes conditions to any other conditions using the script, but not the other way around. This can only be done...
View ArticleRe: Framescript: search and replace condition name in a bunch of mif files
Hi Roman, I have not delved into the details of applying conditions, but I did find that some condition formats are predefined by FM. Probably there is a property (possibly hidden) that does not allow...
View ArticleOutput function (results to a file) in Extendscript
When I check a script I use the alert to see if the code is working, such as "Current tag is body".Is there a function that outputs alert results to a file? For example, a way to send to a file allof...
View ArticleRe: Output function (results to a file) in Extendscript
Check the JavaScript Tools Guide for details about the File object. Basically, it works more or less like this: var oFile = new File ( /* full path name as text string */ ); oFile.open( "w" ); /*...
View ArticleRe: Finding an element from a text location
Hi Jang, Did you end up working this out? I'm trying to do the same thing now and looking for the answer.... thanks, Tracey
View ArticleRe: Finding an element from a text location
Hi Tracey, It turned out to be really simple: you can translate between text locations and element locations using two methods (one for each direction). var oTRange = oDoc.TextSelection;var oTLoc =...
View ArticleRe: Output function (results to a file) in Extendscript
Here's the code I have, but the Extendscript debugger says oFile.open is not a function, is this only for javascript? Thanks, Keith function processDoc (doc) { //Process the paragraphs and...
View ArticleRe: Output function (results to a file) in Extendscript
OK, was in a hurry, see that the new is a resreved word, this should be closer, there are no errors but no text output, I'll keep trying... //Process the paragraphs and tables in the main document...
View ArticleRe: Output function (results to a file) in Extendscript
Keith, There are a couple of problems with your script. 1. You need to 'escape' the backslash in strings. So the code for creating your file should look like this: var tagsFile = new File...
View ArticleRe: Output function (results to a file) in Extendscript
Thanks, I got it to work, with using foraward slashes and an extra step, is there an advantage to your code? Sometimes mine will lock up Frame: function processDoc (doc) { //Process the...
View ArticleRe: Output function (results to a file) in Extendscript
Hi Keith, I can't tell why Frame sometimes locks up, as I don't know what your applyNewPgfFmt function looks like. I would keep displaying on until the code is perfected and well-tested, then use the...
View Articlecopy paste text frame
Hi to all.I am trying to make a very simple script that finds the first text frame that exists in a flow (in this case a secondary flow with only a line of text) ,copy that in the exact same location...
View ArticleRe: copy paste text frame
Hi Dimitris, Yes this is definitely possible with ExtendScript. You may want to post a link to a sample file so we can see exactly what you are trying to do. You are welcome to send me something...
View ArticleRe: copy paste text frame
Hi Rick,thanks a lot for your reply.I am trying to make a template for aviation manuals.There is a requirement to have page revision status, that means that I have to enter a date to every page and...
View ArticleRe: copy paste text frame
Dimitris, Do all pages of the same manual get the same revision number and date, or is this a per-page revision ? If all pages get the same number and date, you can use FrameMaker variables and do not...
View ArticleRe: copy paste text frame
Hi to all,The initial issue has the same revision number and revision date.I can not do this with a variable because the list of paragraphs does not get information from master pages.The way I found to...
View ArticleRe: copy paste text frame
Hi Dimitirs, When you navigate to the right page, I guess you can find the text location where the graphic with the text frame should be inserted? That text location must be used to set the...
View ArticleRe: copy paste text frame
The text frame needs to be pasted in the exact same location Jang. I thought that when you copy a text frame the properties are copied also.Is this the case?Am I missing something?From what I have read...
View ArticleRe: copy paste text frame
No, you cannot copy the text frame in the exact same location, as that location only exists once in the entire document. What you call "exact same location" is a location relative to the content on the...
View ArticleRe: copy paste text frame
It is an unanchored frame.I used this to copy the object: doc.FirstBodyPageInDoc.FirstSelectedGraphicInDoc;doc.Copy(); Very simple.The user creates the unanchored frame to the location he wants, writes...
View Article