Re: Extendscript that runs "Apply Master Pages"
Hi Roman, CallClient is a global function, not a method of the app object. But I am not sure about the client name and the command you should supply for the ApplyMasterPage functionality. I am trying...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Did you try the answer that was in the other forum thread? Fcodes([app.GetNamedCommand("ApplyMasterPages").Fcode]);
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Rick, It looked so strange to me that I did not think it would be the solution. But it is. I tested it on a document with a master page application table, comparing the result with the result that...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Jang, Rick, I appreciate your responses, guys! I tried running the FCodes command in the Exscript tool, but only got the "Result 0" message. If Jang said this command works, apparently I ran it in...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Roman, The return code for Fcodes is always 0, and there is no FA_errno either. This means you just have to assume that the command really worked, or find a way to check the document(s) after...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Jang, Thank you for your explanations about this command! As you said, this command (with an extremely vague syntax I should say), does work. I understand the middle part, but it's not clear to me...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Roman, The one line from Oliver John's earlier post is a combination of finding the Fcode, entering it into an array and send the array of Fcodes to FrameMaker to be executed. The Fcodes( ... )...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Jang, Thank you very much for your detailed explanation! If I understood correctly, the array is needed to specify the whole path to the command under the format menu, right? Question: oMyCodes is...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hello again Roman, No, the path to the menu is irrelevant. Each command has a unique name. This means that even if the command is moved to another menu (by configuration files, for instance), the code...
View ArticleRe: Extendscript that runs "Apply Master Pages"
One note about this thread: you should only use Fcodes as a last resort. Fcodes require an active, on screen document, so they don't work on documents you might open invisibly when processing all...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Jang, Great explanation, thank you! Now I understand why an array is used in this case. My best regards,Roman
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Rick, Thank you for your valuable input! My best regards,Roman
View ArticleRe: Extendscript that runs "Apply Master Pages"
Guys, I wonder if there is there a way to make this script event-driven, so that it will be triggered after importing formats from another file? The FM help says that 'Registered' scripts are...
View ArticleRe: Extendscript that runs "Apply Master Pages"
Roman, Please start a new thread for this question and I will answer it. Rick
View ArticleRe: Extendscript that runs "Apply Master Pages"
Hi Rick, Sure, I will. Thank you very much in advance! My best regards,Roman
View Articleevent-driven extendscript
Guys, I wonder if there is there a way to make a script event-driven, so that it will be triggered, for example, after importing formats from another file? The FM help says that 'Registered' scripts...
View ArticleRe: event-driven extendscript
I wrote a blog post on this: http://frameautomation.com/?p=299 Please let me know if you have any questions or comments. Thanks. Rick
View ArticleRe: event-driven extendscript
Hi Rick, First of all, thank you very much for a detailed introduction to event-driven scripts!Now, I also know that you have a blog, which is great. I do have a couple of questions. 1. It not clear...
View ArticleRe: event-driven extendscript
1. You have to "Run" the script to get it Registered. After you run it (or set it up as Autorun), it will show up in the Registered View of the Script Library palette. 2. This is a built-in FrameMaker...
View ArticleRe: event-driven extendscript
Hi Rick, Thank you for your response! 1. For some reason, not all scripts become "Registered" when run. For example, your command code checking script becomes Registered when run. The Apply Master...
View Article