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 Roman, OK, here is a way you might be able to work around this. It is going to take more code, but it should work. Remember that with many events, there is a "Pre" event that corresponds to the "Post" event. So you could monitor the "Pre" side of the function event (FA_Note_PreFunction) and store the paragraph format of the current paragraph. Then when the FA_NotePostFunction event is triggered, again test the paragraph format of the current paragraph. If it has changed, then you know that a paragraph format has been applied. Then you can apply your condition.

 

A couple of notes: You will have to store the paragraph format name in a global variable so that it will still be available when the Post event is triggered. Also, this type of script will be "expensive" because it will get executed regardless of the function that is invoked. In practice, though, you may not notice any performance degredation. Please let me know if you have any questions or comments.

 

Rick


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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