FMjsxLib - Script library for FrameMaker
During the development of my ExtendScript projects since about 2015 a number of ancillary function accumulated. Many of those were used in later projects also. I found it practical to collect them in a library. For most functions I have also collected the test file as demos.
How to use the scripts from the library
The scripts are intended as building blocks of an application script. While they fit together in this library, you may need to modify them to your needs.
At least the name of the global object KLD_Z
must be modified to your initials and the project character, for example to MOJ_B
. You may wish to consult the complete documentation before you consider an installation.
Installation
Note: All software from D+DD is Donationware - if you find it helpful for your work, think about supporting also my work.
- Download the script file
- Updated, corrected: CollectMarkers, DisplayObject, CollectTablesInBody (UserString handling), CollectFramesInDoc (UserString handling).
- New: ActiveTab, ApplyDefaultCharFmt, ComposeMsg, CreateUserString, ModifyMarker, ReadUserString, ReplaceInString, SearchInString, WriteUserString,
- Documentation extended.
- Corrected: FindAndReplaceString
- New: ApplyMasterPages, CnvBookToStruct, CnvDocToStruct, ExistFile, ExistFolder, GenerateConversionTable, GetBookErrorLogDoc, ListBookFiles, OptimisePDFsize, Publishing, SortTable, UpdateConversionTable, ValidateDoc, WriteBookErrorLog
- Documentation Chapter added "Automation with ExtendScript' (by Rick Quatro).
- Corrected: ExecuteFCodes, Ungroup
- Renamed: GetText → GetTheText
- Updated: ApplyCharFmt, ApplyPgfFmt, GetFindParameters (constants replaced by mnemonics → required updates for FindXxx functions), CollectFramesInBody, CollectMarkers, CollectTablesInBody, FindAndReplacePara, FindAndReplaceString, FindSomething, FollowXRef, GetIndexNearestVariable, GetTRafterTAB
- New: ApplyObjectStyle, ApplyTblFmt, InsertGroupTitles, IsGroupableObject, UnformatClipboard
- New demo: FindSomething
- Documentation Chapter added "Table of FrameMaker commands"
- Corrected: DeleteArrayItem, SearchInString, SwitchUIlanguageX
- Updated: StandardSound
- New: GetClonedCase, ListSelector
- New demo: some
- Documentation updated
- Updated: SaveDocToMif, SaveDocToPdf
- New: IsTextInset, SaveDocToMif7, SaveDocToOldFM
- New demo: some
- Documentation updated
- Corrected: ApplyCharFmt
- Updated: -
- New: CharFmtBLshift, DefineAltImgData, ImportDoc, MoveToBackOrFront
- New demo: GetXMLdata, UI-PositionAbsolute, UI-QuickAccessKeys
- Documentation: Chapter XML reworked
- Removed: OpenHelpFile
- Updated: Chapter XML; docu for FindOverflowText, ExecuteWinCmd
- Renamed: RemoveEmptyPages ► RemoveTrailingEmptyPages
- New: Executing console application, FindDisconnectedPages, GetPDFinfo, ImportPDFpages
- New demo: FindDisconnectedPages, GetPDFinfo, ImportPDFpages, ReadingXML
- Updated: PadWith0
- New: DateAddDays, GetDateTime
- New demo: FindOverrides, DateAddDays, GetDateTime
- Documentation: many amendments
- Before installing a new (updated) version, uninstall the current version
- Expand the ZIP to any location, typically to the desktop. You get a file and a directory.
- Execute the file
Inst-FMjsxLib.exe
The language of the installation dialogues adapts to the UI language of your current FM installation (de, en, fr):
- Define the location for the library in the enty field. You may use the Browse button to navigate your system.
- With Install the files will be copied to the defined location, subdirectory
FMjsLib
. - A message indicates the end of the installation.
- The library
...\FMjsLib
also provides the following information:.
- DocumentationFMjsxLib.pdf
.
- Current version of the library inconfig.ini
atappVersion
FM version | Date | Version | Installation file(s) | Latest changes |
---|---|---|---|---|
10 and higher | 2021-09-06 | 1.0 | Inst-FMjsxLib.zip | First issue of FMjsxLib |
2022-02-16 | 1.1 | |||
2022-03-17 | 1.2 | |||
2022-06-20 | 1.3 | |||
2022-12-20 | 1.4 | |||
2023-03-31 | 1,5 | |||
2023-05-11 | 1.6 | |||
2023-08-07 | 1.7 | |||
2024-01-02 | 1.8 |
Uninstall the library
Just remove the subdirectory FMjsLib
from your system.
Caveat
Any software from D+DD is provided by the author and contributor "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed.