I thought I'd ask the experts before trying to write anything with my meager skills. Is it possible to write a script that will purge all master and reference...
Hi Eric, You should be able to use: NEW String IntValue (9) NewVar (forced_return); New Text TextLoc(vLineBreakLoc) forced_return; Cheers, Mark ... From:...
Hi Eric, You can use this to insert a soft-return: New Text TextLoc(vLineBreakLoc) 9S; Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com Frame 7.1...
Rick Quatro
frameexpert@...
Dec 4, 2006 9:41 pm
7288
Thanks to Mark and Rick. Should have found Marks solution myself. DOH! Guess I was just facing scripting block and the simple hex to decimal of \x09 in the...
Klaus Mueller mentioned it in one of his posts. It is somewhere in the documentation, I think, but I don't remember where. It is pretty handy. Rick Thanks to...
Rick Quatro
frameexpert@...
Dec 5, 2006 1:25 am
7290
Here's an interesting conundrum: The following script, copied from one of Rick's previous posts, works perfectly and replaces all soft returns in a document. ...
And here finally, the working alternative: Set vCurrentPara = ActiveDoc.FirstPgfInMainFlow; Get TextList InObject(vCurrentPara) NewVar(vTextList) LineEnd; Loop...
Hello Carla, You may want to try the attached script RemoveUnusedFormats.fsl. It allows you to delete all unused formats, master pages and specified reference...
Hello all, I'm a newbie with Framescript. I'm working in structured Frame. I have a number of different elements in my documents that have the same attribute...
Hello Peter, Sorry for the brief response, but I don't have my structured Frame scripts handy. IIRC, you need to create a new attributelist with the desired...
Thanks Eric, That was pretty much as far I got with the ref materials/this site etc. - and I was stumped!! I'm not sure if I'm over-cooking this but today I've...
I'm trying to automate the production of PDFs from a set of FrameMaker books using FrameScript. I have a script to open each book, do an update, then print to...
I have a custom color definition that is used in over 50 Frame documents. It is called 'my_color' and it is currently RED. I would like a script that would...
I have a custom color definition that is used in over 50 Frame documents. It is called 'my_color' and it is currently RED. I would like a script that would...
Thankyou Karsten, With some more stuffing around(!) this is what I've ended up with (provided here for the benefit of any others novices like me looking to...
Ken- I also had this issue. I checked the archives and it seems that there is no way to suppress the Inconsistency warnings. What I did instead was create a...
Hello All, I have an interesting FrameMaker programming problem that I am having trouble solving. I have a PDF that will help explain the problem at ...
Rick Quatro
frameexpert@...
Dec 7, 2006 5:53 pm
7303
Hi Rick. Unless I greatly misunderstand you, I believe you just need a series of nested loops, driven by a series of string lists. The rough algorithm is: New...
OK, Here's a hack, er, excuse me, an algorithm. Before you populate each of the string lists, begin by adding a member[1] that contains "IgnoreMe" (or whatever...
Hi Simon, You are right, except if one or more of the lists is empty, it short-circuits everything. Rick Hi Rick. Unless I greatly misunderstand you, I believe...
Rick Quatro
frameexpert@...
Dec 7, 2006 9:02 pm
7306
I swear, everytime I try to do something it seems to become far more complicated than it should be. If you want to insert text at the end of a paragraph, how...
// Paragraph containing the insertion point. Set oPgf = TextSelection.Begin.Object; // Text location at the end of the paragraph. New TextLoc NewVar(tTextLoc)...
Rick Quatro
frameexpert@...
Dec 7, 2006 11:10 pm
7308
Hello all, All help appreciated. Another seemingly simple query that has vexed me. I'm trying to loop a variable incrementing its value by 1. I have the loop...
Hello Peter, you can do this with the New Integer command. Sample: Set lv_strA = '1234567890'; Set lv_intB = 1; New Integer NewVar(lv_intA) Value(lv_strA); ...
That's it. I'm certain if I spent more serious time scripting I wouldn't get myself into these messes. I just seem to always overlook constants, standard ...
Okay, Looked at Simon's answers, and nested loops do the job. Which is all good and fine if It's a known quantity of properties and settings. New StringList...
Hello, Occasional scripter here, FM 6.0 Unstructured, FS 4.0R2. I have been experimenting with creating a custom palette in FrameMaker (a technique I recently...