Re: Create an ExtendScript to create PDFs...object help
Hi Diana, This constant works with the FileType property when you save a book. I don't know any of the details about how it works. What exactly do you want to do when the notification is received? If...
View ArticleRe: Create an ExtendScript to create PDFs...object help
Hi Rick, Thanks very much! It sounds like I should try adding the Constants.FA_Note_PreFileType to the switch in my setupNotifications function. I'll try playing around with that first and see if I can...
View Articleapply a conditional tag to all occurences of a pragraph
Is it possible to write an extend script to apply a conditional tag to all occurences of a pragraph tag in a document? Are there any samples of a script like this
View ArticleRe: apply a conditional tag to all occurences of a pragraph
You can also accomplish this using only the standard Find/Change function. 1. USe the Copy Special to load the required Conditional Text Setting already applied somewhere. 2. Use Find to look for the...
View ArticleIs there a maker.ini command to change extendscript default startup directory?
Hi All, Rather than use <framemaker install dir>\startup, I want to use c:\deploy - for storing all my required startup extendscripts and dlls. Can I do this, if so, how? Thanks! Tracey
View ArticleRe: Applying a condition to a paragraph
Hello to all, I know this is an old thread, but I'm just now getting around to trying this task myself and I am unsuccessful as you were. My script is very simple... just attempts to apply a single...
View ArticleRe: apply a conditional tag to all occurences of a pragraph
Meera, I thought this sounded like a great idea for a sample script. I thought I would write one and add it to my free samples collection on my website, but it turns out that I just cannot get it to...
View ArticleRe: Applying a condition to a paragraph
Hi Russ, This may be more of a FrameMaker 10 ExtendScript issue. I just mocked up a sample document of almost 2000 pages and ran a modified version of Anchal's code. It took awhile, but it worked in...
View ArticleRe: Free and For-sale Scripts
I thought I'd ressurect this thread, as I'm looking for a script that will automate this workflow: 1. open a FrameMaker 10 book file (MS Windows 7)2. save it as a PDF to a \PDFs folder3. close it...
View ArticleRe: Free and For-sale Scripts
Hi Paul, I don't have anything ready-made, but I could write something for you. Contact me offlist and I will give you a quote: rick at frameexpert dot com. Thank you very much. -Rick
View ArticleError while loading an XML document using a structured application
Hi, I try to load an XML document using a structured application defined in the default structapps.fm My code is shown down, extracted from the FDK API code sample. Problem, I always have the same...
View ArticleRe: Error while loading an XML document using a structured application
Hi, My guess is that the script can't find the file you want to open, not that it can't find structapps.fm. One question... what is this? var filename = myLastFile.openDlg("Choose XML file ...",...
View ArticleRe: Error while loading an XML document using a structured application
Postscript... I realize now that openDlg() might be some core javascript method that I'm not familiar with, although I can't find much about it. In any case, see what filename equals afterwards. If it...
View ArticleRe: Error while loading an XML document using a structured application
Hi Pierre, The openDlg method returns an ExtendScript File object, not a string. When you do this: var fileObj = Open(filename, params, retParm); filename is a File object instead of a string. You need...
View ArticleRe: Error while loading an XML document using a structured application
Pierre, Depending on the object "myLastFile", the method openDlg might not even exist (if the myLastFile object is not a File object, for instance). And I do not see any need for the myLastFile anyhow,...
View ArticleRe: Error while loading an XML document using a structured application
Hi Russ, Hi Rick, Hi Jang, Thanks for taking time on my problem. You were right : filename was a File object, not a string ... that was the sole problem. Thanks for your answer, it now works.
View Articlemy palette window hides behind main window
For awhile, as I developed a script, the "tools palette" window that it creates stayed in front of the main doc window. Somehow it changed behavior, and how hides behind the main doc window whenever I...
View ArticleGetting rid of a notification
I have tried notification and decided there are too many problems with it. But no matter what I do now, the Console keeps showing the same notification error with every file I open. I had a...
View ArticleRe: Getting rid of a notification
1. Go to File->Script->Catalog. 2. Select the Registered tab. It will show list of scripts which has been registered. 3. Now select the script which you want to unregister and...
View Article