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
CallClient ("masterpages, book.id);
where "book" is your Book object.
var cmd = app.GetNamedCommand ("ApplyMasterPages");
The Fcode version will only work on the active document.
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.
Does the doc need an update here?
There have been a bunch of mistakes and omissions in the Scripting Guide that never got noticed - except by geeks like me. I still have an unfinished project to create a really useful ExtendScript reference website. I got halfway there but then business took over and like anybody else I need to make a living. It would be cool to have a web-based developer-friendly resource like that. Who knows what the upcoming year will bring...
For the FDK I'm already working on that with the Doc team … For ExtendScript doc I have that on my schedule for 2019 🙂
I rarely use the Scripting Guide. I use the FDK docs and "translate" into ExtendScript. I also use the header files from the FDK to figure out constant values, notifications, etc.
My resources in order of usage:
1. Scripitng Guide
3. FDK Reference
4. FDK include files
6. Creating small test scripts to figure out which properties work
7. Direct mail to the Adobe dev team