Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: Associating a condition with a paragraph/char format

$
0
0

Hi Rick,

 

First of all, thank you for writing this script! It helped me learn more about Extendscript. I am surprised that Adobe haven't released any ES documentation yet - real shame. Yesterday, I spent quite a lot of time looking for a function that selects the current paragraph. And guess what - I could not find it in the ES data browser (which is not user friendly at all).

 

The above script displays the name of the previous and current Pgf format, which is already something to start with.

 

Now come the questions:

 

1. "function Notify" is not explicitly called in this script. So, how does it work?

2. object.constructor.name === "Doc" - It's not clear to me what this is supposed to do. Why is it "Doc" and not "doc"?

3. getPgfFmtName(object) - Why does a call to this function contain an "object" as an argument, while in the function definition, it is "doc"?

4. What's the code for applying a condition to doc.TextSelection?

 

Thank you for your explanations in advance!

Roman


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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