// This script file is licensed under a Creative Commons // Attribution 4.0 International License (cc by 4.0): // http://creativecommons.org/licenses/by/4.0/ // You may adapt and/or share this script file for any purpose, // provided you give credit to http://bridgecomposer.com // This script scans a folder (and optionally its subfolders) for PBN files, // and applies a specified BridgeComposer layout to all of them. // // For details about a BridgeComposer layout, use BridgeComposer "Help>Help Topics", // Index tab, and double-click the "Format Layout submenu" item. Scroll down to the // "Layout Settings" subtopic. // // To use from the BridgeComposer Script menu, first open any document with // the desired layout. Then start the script from the Script menu. // // To use from a command line or by double clicking, start the script and you // will be prompted to open a document. Select any document with the // desired layout. // // Either way, you will then be prompted for the folder to scan. Select the // folder containing the PBN files you wish to have the layout applied to. // You will then be asked whether or not to process subfolders of this folder. // Your choices will be confirmed, and then processing will begin. // // First, a backup copy of the folder to be processed is made. The backup // will have the same path and name as the original, but with " - Copy" appended // to the name. (In case of duplication, " - Copy (n)" will be appended, where // "n" is set to 2, 3, 4, ..., as needed to be unique.) // // All PBN files in the original folder (and its subfolders, if that option is selected) // will have the layout of the starting document applied. // Exception: Any PBN file that has the "read-only" attribute will not be changed. // $Id: LayoutApply.wsf 110 2022-09-03 05:16:49Z Ray $