(function () {
//************* Default Values - Changes made here are safe
const defaultOperation = "Shrink"; //Valid Values: "Shrink", "Grow"
const defaultSizeChange = 72; //Only in Points, 72pt = 1 inch
//************* Do NOT make changes beyond this point if you don't know JavaScript
const dependencies = ["qx_constants", "qx_validations", "qx_inputs", "qx_measurements", "qx_get_boxes"]; //File Names of Dependencies to Load From QuarkXPress App (skip .js extension)
let startTime, endTime;
//Import Dependency Scripts
importDependencies(dependencies);
if (qxValidations.isLayoutOpen()) {
//get the selected box
let box = qxGetBoxes.getSelectedBox(false);
if (box == null) {
showResult("Please select a single box to run the script. Tables, Grouped Items, and Composition Zones are not supported.");
}