Skip to main content
apuwdm2
Inspiring
November 16, 2019
Answered

Hiding the .fm extension in variables

  • November 16, 2019
  • 11 replies
  • 1630 views

Hi All,

 

Requesting a solution for a query that has been discussed earlier, but I am not able to fully understand the replies.

 

I have a book in FM 2019 with around 100 documents. Each document has a table, whose Table Title should be the same as the Document Title.

  • Does a variable exist that has only the document title without the .fm extension? For example, I have a document called Oil Pump.fm that has a table that should have the same name, but without the .fm extension. I have tried to use <$chaptertitlename> or <$filename> variable but the inserted text is always "Oil Pump.fm" and not the desired "Oil Pump."
  • Is it possible to create a variable that uses the file/document name without adding the .fm extension?
  • If I can't have a variable free of the .fm extension, is there a method of 'Find and Replace' that will replace the "Oil Pump.fm" text in the Table Title with just "Oil Pump"?

 

Thanks in advance for your help.

 

Regards


Apurva

This topic has been closed for replies.
Correct answer frameexpert

The ExtendScript Toolkit SHOULD install with FrameMaker but if it doesn't, you can download it from Adobe's website.

https://helpx.adobe.com/download-install/kb/creative-cloud-apps-download.html

11 replies

apuwdm2
apuwdm2Author
Inspiring
November 16, 2019

Replying to my own question with a wish to help someone who has a similar query.
The answer probably lies in not in using Variables but inserting a Cross-Reference to a Paragraph Style that contains the <$paratext> - the document's name. Still working on a perfect solution that works for all files in the book, but the results look encouraging.

 

Regards,

 

Apurva