Skip to main content
Legend
Jan 17, 2015 10:33 PM UTC
Answered

How to execute a FrameMaker command (ExtendScript)

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 is closed to new replies. Start a new post to keep the conversation going.
frameexpert
frameexpertCorrect answer
Community Expert
Jan 18, 2015 3:09 AM UTC

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

4 replies

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
Jan 18, 2015 3:09 AM UTC

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

Translate
www.frameexpert.com
Russ WardAuthor
Legend
Jan 18, 2015 1:21 PM UTC

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

Translate