Skip to main content
Participating Frequently
March 20, 2017
Answered

Accessing the "Read Application Definitions" function from the StructureTools menu

  • March 20, 2017
  • 2 replies
  • 471 views

Using extendscript or framescript, is there a way to access the "Read Application Definitions" to read an opened structure file? I'm using Structured Framemaker 11, and I need to update an application definition file to shift between a portrait and landscape layouts.

The keyboard shortcut is alt-r, shift-R if I can just call it from a keyboard shortcut.

Thanks for any help you can give me!

Rick

This topic has been closed for replies.
Correct answer Ian Proudfoot

Rick

This should do it for ExtendScript:

doc.id is the id of the structured application file.

CallClient('FmDispatcher', 'ReadAppFile '+ doc.id);

Ian

2 replies

Participating Frequently
March 23, 2017

This was exactly correct. Thank you so much for the help! With Framescript, the code looks like this:

CallClient FrameClient('FmDispatcher') Message('ReadAppFile '+oCurrentDoc); // oCurrentDoc = document object

Ian Proudfoot
Ian ProudfootCorrect answer
Legend
March 20, 2017

Rick

This should do it for ExtendScript:

doc.id is the id of the structured application file.

CallClient('FmDispatcher', 'ReadAppFile '+ doc.id);

Ian