Skip to main content
4everJang
Legend
Dec 17, 2018 12:23 PM UTC
Answered

Calling Apply Master Pages from a script

Hello scripting friends,

There is no method to apply master pages for the Doc object, but I know it can be done, as I have done this before. But I cannot find the script anymore to figure out how that worked. Does anyone have the FCode or CallClient info to do this ?

Thanks in advance

4everjang

This topic is closed to new replies. Start a new post to keep the conversation going.
frameexpert
frameexpertCorrect answer
Community Expert
Dec 17, 2018 12:38 PM UTC

Hi Jang,

CallClient ("masterpages, book.id);

where "book" is your Book object.

or

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

Fcodes ([cmd.Fcode]);

The Fcode version will only work on the active document.

-Rick

www.frameexpert.com

8 replies

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
Dec 17, 2018 12:38 PM UTC

Hi Jang,

CallClient ("masterpages, book.id);

where "book" is your Book object.

or

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

Fcodes ([cmd.Fcode]);

The Fcode version will only work on the active document.

-Rick

Translate
www.frameexpert.com
4everJang
4everJangAuthor
Legend
Dec 17, 2018 6:08 PM UTC

Thanks. The Fcode is what I needed. I checked the long FCode constants defs in the Scripting Guide but apparently the name for the code is not really create to be intelligible - or the list is incomplete.

Ciao

Translate
Legend
Dec 17, 2018 7:45 PM UTC

Does the doc need an update here?

Translate