Skip to main content
Legend
January 17, 2015
Answered

How to execute a FrameMaker command (ExtendScript)

  • January 17, 2015
  • 1 reply
  • 1323 views

Hi, does anyone know how to execute a command that your script did not create? In particular, I want to invoke the Edit > Update References command and launch that dialog box.

Thanks,

Russ

This topic has been closed for replies.
Correct answer frameexpert

Hi Russ, I think you want this:

#target framemaker

var cmd = app.GetNamedCommand ("Update");

Fcodes ([cmd.Fcode]);

If this isn't what you are looking for, let me know. Thanks. -Rick

1 reply

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
January 18, 2015

Hi Russ, I think you want this:

#target framemaker

var cmd = app.GetNamedCommand ("Update");

Fcodes ([cmd.Fcode]);

If this isn't what you are looking for, let me know. Thanks. -Rick

www.frameexpert.com
Russ WardAuthor
Legend
January 18, 2015

Hi Rick, that is exactly what I wanted. Thank you. As I look at your answer, it makes sense... it's all just Fcodes, but I did not know of the Fcode property for a command. Very handy.

Russ