[Framers] ANN: Bottlenecks

Rick Quatro rick at rickquatro.com
Tue Jun 5 16:14:05 PDT 2018


Hi Chris,

I demoed something like this in one of my webinars a few years ago. The XML file looked like this:

<?xml version='1.0'?>
<dialog title="Set Variable Formats">
  <group id="DocumentTitle">
    <statictext label="Document Title:"/>
    <edittext value="ILLUSTRATED PARTS CATALOG SUPPLEMENT"/>
  </group>
  <group id="ChapterTitle">
    <statictext label="Chapter Title:"/>
    <edittext value="Front End Parts"/>
  </group>
  <group id="ReleaseDate">
    <statictext label="Release Date:"/>
    <edittext value="Sep 30/14"/>
  </group>
  <group id="RevisionCode">
    <statictext label="Revision Code:"/>
    <edittext value="A/C 5538"/>
  </group>
  <group id="ProductName">
    <statictext label="Product Name:"/>
    <edittext value="Widget"/>
  </group>
</dialog>

Each group represents a variable and variable definition. The variable name is the group id, and the label is a more human readable form. And the edittext value is the desired definition. The resulting dialog box expands vertically to hold all of the groups in the XML file. Whatever values the user enters in the dialog box become the defaults the next time the script is run. To add, delete, or edit groups, you edit the XML file. The script runs on the active document or book.

Rick

-----Original Message-----
From: Framers <framers-bounces+rick=rickquatro.com at lists.frameusers.com> On Behalf Of Chris Despopoulos
Sent: Tuesday, June 05, 2018 5:35 PM
To: framers at lists.frameusers.com
Subject: Re: [Framers] ANN: Bottlenecks

I actually got this working, but I never finished it...  I was hung up on hosting it on a web site, when hosting it on the file system would probably be more useful...
Anyway, an XML file that captures sets of variables and definitions.  You can swap out for a book by choosing the set and importing it.  And add to that just plain old book-level variables...  A scrolling list with all the user variables, their definitions, and a tick-box for change/leave as-is.  Go through the list, set your variables, click DO IT, and your book is transformed.  No need to hunt for a file to import formats, no dealing with the clunky variable GUI (this can be much larger and easier to use).
_______________________________________________

This message is from the Framers mailing list

Send messages to framers at lists.frameusers.com Visit the list's homepage at  http://www.frameusers.com Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to listadmin at frameusers.com



More information about the Framers mailing list