Re: copy paste text frame
Hi Dimitris, In the FrameMaker interface, you can use the clipboard for this type of task. But when scripting it, you don't have to use the clipboard. Instead, the script can get the properties of the...
View ArticleRe: copy paste text frame
Do you get the properties with the GetProps?Can you point me to the right direction?
View ArticleRe: Looking for a script that will save as v11
Wow! I've seen many people telling that such downsaving is out of FM capabilities. And I was sure of that too... )The script will have a good commercial future. I'll be very grateful if you send it to...
View ArticleCheck if a single Text Item in a cell is bold and then grab the string that...
I have written a script that runs through a table and parses out the information I need to create another table with some added information.The last piece that I can't seem to figure out is how to...
View ArticleRe: copy paste text frame
Most properties can be picked up directly. For example, select a text frame in a FrameMaker document and run this code: #target framemaker var doc = app.ActiveDoc;var textFrame =...
View ArticleRe: Re: copy paste text frame
#target framemaker // Before running this script: // Draw and position a text frame on the first page and select it. // Set a variable for the active document. var doc = app.ActiveDoc; // Set a...
View ArticleRe: Re: copy paste text frame
Rick thanks a lot for your time and your script!!!This works almost as desired. The issue is that the text frame is empty without text.It Creates the frame at the correct position but with no text.
View ArticleRe: Re: copy paste text frame
Hi Dimitris, My primary business is writing scripts for clients so there is a limit to how much free help I can provide. There should be examples of adding text in the FrameMaker ExtendScript...
View ArticleHow do I change the table's first row to a Heading row if it contains pgfs...
So far, I have the following in a JavaScript: if (tbl.FirstRowInTbl.FirstCellInRow.FirstPgf.PgfFmt.Name === "tblHead") { if (tbl.FirstRowInTbl.RowType === 1) //1 is...
View ArticleRe: How do I change the table's first row to a Heading row if it contains...
Ruth, You will have to develop this step by step. You might assume that something is 'clearly' wrong, but you only know when you let the script tell you what it found. So either use the debugger and...
View ArticleRe: Applying a condition to a paragraph
@Hi Anchal, Here is the script that I am trying to run to traverse through the paragraph tags in the book files and check for a condition applied on them:var openedBook =...
View ArticleRe: How do I change the table's first row to a Heading row if it contains...
Hi Ruth, One big problem with your script is that the RowType property is read-only. So, you can't just change a row type by setting a new value. You have to insert a new heading row, copy the data...
View ArticleRe: How do I change the table's first row to a Heading row if it contains...
Hi Ruth, This: if (tbl.FirstRowInTbl.FirstCellInRow.FirstPgf.PgfFmt.Name === "tblHead")should beif (tbl.FirstRowInTbl.FirstCellInRow.FirstPgf.Name === "tblHead")I agree with Jang; sometimes having long...
View ArticleRe: How do I change the table's first row to a Heading row if it contains...
Russ: Thank you for this information. I’ll see if I can take those actions you recommend… that’s exactly what I will have to do by hand if I can’t get the script to do it! ☺ Ruth
View ArticleRe: Re: How do I change the table's first row to a Heading row if it contains...
Ruth, here is a function that will convert body rows to heading rows in a table. Please let me know if you have any questions or comments. -Rick #target framemaker var doc = app.ActiveDoc; // Set a...
View ArticleScripting tips
Hi Scripters, I want to offer some advice to those seeking scripting help. First of all, this forum isn't too busy, but there are some extremely helpful people on here. If you follow this advice, it...
View ArticleRe: How do I change the table's first row to a Heading row if it contains...
Rick: Thanks! I adapted what you sent me (I was partially there, but making it very hard on myself, as I didn’t think in terms of working with the doc object and was trying to do everything at the cell...
View ArticleRe: How do I change the table's first row to a Heading row if it contains...
Hi Ruth, Thanks for the feedback. Please mark my post as the correct answer when you get a chance. Thanks. -Rick
View ArticleRe: Scripting tips
Hi Rick, Great advice. I'll also add that posters should mention which version of FM that they are using and what platform they are running on. [Older versions of Extendscript had numerous issues]...
View ArticleRe: Scripting tips
Here is a good place to start. Someone recently asked for help applying a condition format to certain paragraphs. When working on paragraphs, first get your code working on the paragraph containing the...
View Article