Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Browsing all 3715 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Re: copy paste text frame

Do you get the properties with the GetProps?Can you point me to the right direction?

View Article


Re: 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 Article

Check 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 Article

Re: 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 Article


Re: 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 Article

Re: 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 Article

Image may be NSFW.
Clik here to view.

Re: 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 Article


How 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 Article


Re: 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 Article

Re: 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 Article

Re: 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 Article

Re: 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 Article


Re: 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 Article

Re: 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 Article


Scripting 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 Article

Re: 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 Article


Re: 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 Article

Re: 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 Article

Image may be NSFW.
Clik here to view.

Re: 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
Browsing all 3715 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>