InDesign Script Dimensions CHANGE LOG Version 6.6 (230319) a. Read script folder for i18n make consistent with AI and PS. b. Update function validateFloat. c. Update function validateInteger. Version 6.5 (230105) a. Update i18n. Version 6.4 (221031) a. Fill and stroke tint to 100%. b. Try/catch set alignToBaseline for Non-US English versions that lack the property. Version 6.3 (221029) a. Create new variable 'fontFullNames' array. b. Function windowTextDefine display font.fullName but use font.name. c. Font name default change to 'Arial\tRegular'. Version 6.2 (221022) a. Settings apply set list units before value inputs. Version 6.1 (221019) a. Update panel 'Settings' to match others. Version 6.0 (220928) a. Remove //@target b. Check app name and warn if wrong app for script. Version 5.9 (220805) a. Remove working 'Loading fonts' never shows anyway. Version 5.8 (220802) a. Problem with tp.selection.index is actually a non-problem. Already have var 'tab' with the value needed. Use it! b. Miscellaneous. Version 5.7 (220801) a. Ultimate fix to tab.selection.index missing use for loop to find it. Version 5.6 (220731) a. Improved done alert or error. b. Remove preserve active layer; has no purpose or result. c. Settings current break apart single return statement. d. Settings apply and current try/catch/alert errors. e. Try/catch getting tp.selection.index to dodge AI 26.4 bug. f. Miscellaneous. Version 5.5 (220709) a. Settings replace list add empty item so minimum two items. b. Settings list add empty item so minimum two items. c. Updated (again) function settings.setList. d. Arrowhead list reset selection if user clicks separator. e. Miscellaneous. Version 5.4 (220707) a. Updated function settings.setList. b. Settings list add separator so minimum two items. c. Settings lock and unlock move to listSettings.onChange. d. Delete button disable move to listSettings.onChange. Version 5.3 (220614) a. Equals or not null make strict comparison. b. Update function validateInteger (argument negative). c. Miscellaneous. Version 5.2 (220524) a. Use doc 'allParagraphStyles' etc. to build lists. b. Sort paragraph style and swatch names. c. Distance sort selections from top/left. d. Extension lines and text offsets allow negative values. e. Updated validateFloat function with negative argument. f. Remove i18n future feature 'Inside selected'. g. Rebuild i18n. h. Miscellaneous. Version 5.1 (220511) a. Fix bug dimensions on wrong page when ruler per page. Set ruler to per spread and restore when done. Version 5.0 (220316) a. Drop down lists make array third argument instead of in properties object. b. Move drawInit() code into process function. c. New var 'layerLocked' preserve current, unlock layer, and restore preserved. d. Validate functions pass uiEdit argument. e. Do not call changeOption() inside validate functions. f. Replace function 'progress' with 'working' window. g. i18n file encoding UTF-8. h. Settings file encoding UTF-8. i. Make 'swatchText' script global. j. Make 'swatchDimensions' script global. k. Make function 'createSwatchDimensions' script function, not child of process. l. Add option paragraph style '[None]'. m. Settings load if last text swatch unknown look for 'Dimensions'. n. Rebuild i18n. Version 4.9 (220224) a. Fix reading i18n fails for 'jsxbin' when using Illustrator method. Version 4.8 (220216) a. Remove dash if feet & inches, display style none, and no inches. Version 4.7 (220216) a. Add option display style none. Version 4.6 (220215) a. Zero decimal places defaulting to 4; should keep zero. b. Feet + inches 12" instead of incrementing foot caused by fractions not rounded the same. Version 4.5 (220207) (match version number to Illustrator) a. Internationalize. b. Match to AI missing property app.activeScript use $.fileName instead. c. Paragraph style define window make font size and swatch in columns. d. Increase fixed static text width from 50 to 60. e. Change characters = 5 to preferredSize = [55, -1] f. Allow comma in numeric entry for decimal comma. g. Scale replace comma with point for decimal comma. h. Replace function convertUnits => valueAsPoints. i. Hoist var settings. j. Settings functions setList/listSelection rename argument control => list. k. Function validateUnits change argument order. l. Function setList/listSelection rename list => uiList m. Function validateNumeric rename inp => uiEdit n. Function valueAsPoints rename inp => uiEdit, list => uiList o. Setting function current for name call function listSelection. p. Rename localeEuro => decimalComma. q. Update to i18n[title] in alerts. r. Function valueAsFloat make string before replace. Fixes error 's.replace is not a function'. s. Function valueAsFloat rename argument s => v t. Progress before try so don't have to test if progress.close is defined. u. Miscellaneous. Version 4.0 (220110) a. Arrowhead configure window remove instructional verbiage. b. Test progress.close is defined before calling it. Version 3.9 (211211) a. Reorder measurement units array to match Illustrator. Version 3.8 (211210) a. Remove obsolete vars rulerUnitsH rulerUnitsV. Version 3.7 (211210) a. Improve error handling. b. Apply settings implement function getProp. c. Apply settings updated setList function. d. Settings current function, lists set to 'createItem' replace with 'Dimensions'. e. Add options display measurements as, and style. f. Preserve/override/restore typographersQuotes so foot and inch marks are correct. g. Undo text simply "Dimensions" rather than full title. Version 3.6 (211206) a. Fix error when ruler units inches decimal. Version 3.5 (211204) a. Extend into element add offsetVisible. Version 3.4 (211202) a. Set stroke to overprint last. Was trying to before colored. Version 3.3 (211201) a. Apply settings all setList supply default. Otherwise text swatch is set to index zero, Registration. Version 3.2 (211130) a. UI label columns align left. b. Arrowhead configure default buttons to blur must focus+blur. Version 3.1 (211129) a. Use function validateNumeric for font size, when zero force default. Version 2.9 (211129) a. Non-code minor edits. b. Add function validateNumeric for non-zero stroke weight and scale. c. Update function validateInteger. d. Miscellaneous. Version 2.8 (211025) a. Function addLine() remove set arrowHeadAlignment. Throws error in CC 2015 "arrowHeadAlignmentEnum is undefined". Not needed anyway; arrowheads are now drawn manually. b. settings.apply() ensure swatchNameText exists, otherwise set to swatchNames[0]. c. Miscellaneous. Version 2.7 (211017) a. Miscellaneous. b. Fix function setList. Version 2.6 (211016) a. New setList function. b. Add 'true' to lists default selection item 0. c. Lists text default from defaultSettings, otherwise empty strings in defaultSettings. d. Function validateUnits set priorIndex always. Version 2.5 (211015) a. Updated settings code. b. Miscellaneous. c. Increase text inputs width. Version 2.4 (211001) a. Fix error setting stroke overprint. Version 2.3 (210927) a. Create all arrowheads rather than use InDesign arrowheads. b. Rework arrowhead sizes and shift values. c. Add arrowhead configure. d. Miscellaneous. e. Add save settings. f. strokeAdjust => offsetVisible, calc from geometric vs visible bounds. Version 2.2 (210916) a. Remove support message with email address. b. Settings load/save move file.close() to finally. Version 2.1.2 (210910) a. Rename 'Select font name:' => 'Select font:' Version 2.1.1 (210809) a. Text overprint fill. Version 2.1 (210807) a. Set ArrowHeadAlignment to ensure it is inside path. b. Draw line return array and concat. c. Add arrowhead option 'circle'. d. Add arrowhead option 'slash'. e. Solution to null userData makes new problem. Some users have MyDocuments on a server. Only use new solution if userData returns "/Volumes/null", rather than always. Rather than 'myDocuments', use value for 'desktop'. f. Alphabetize arrowheadStyles/arrowheadsKind. g. Revise calculation for slash arrowhead size. h. Draw arrowhead circle centered. i. Recognize paragraph styles in style groups. j. Miscellaneous. Version 2.0.2 (210615) a. Reverse logic of option extensions lines extend into element. Control enabled by default, if checked, set offset to zero. Version 2.0.1 (210608) a. Fix settings file error userData is null. Use documents and replace path. Version 2.0 (210607) a. Checkboxes to enable lines and text. b. UI alignment changes. c. Font button rename to 'define'; add swatch to its window. d. Corner radius and angle process group items. e. Load fonts when text define window opened (speeds up launch). f. Add option Prefix to corner radius. g. Clearer var names swatchLine, swatchNameLine, swatchNameText. h. Swatch 'Dimensions' was process. No such property 'colorModel' Correct property name 'model'. Now spot color as intended. i. Add option extensions lines extend into element. Version 1.5 (210605) a. Text frames use auto-sizing. b. Stroke set end join to miter, limit 4. Version 1.4.2 (210604) a. Set line ends default to none. Version 1.4.1 (210604) a. Do not override font and size when using existing paragraph style. b. If using existing paragraph style, disable font button. c. Rearrange UI move scale up to make room for label "decimal" places. Version 1.4.01 (210529) a. Miscellaneous clean up. b. Tweaks after comparing to changes in AI version. c. Update drawLine, match arrowhead logic to AI version. d. Add function drawInit, remove code from process function. e. New vars rulerUnitsH and rulerUnitsV replace prior. f. Set values for 'as' used in converting units during setup. g. Other miscellaneous. Version 1.4 (210524) a. AddDistance enhance extend logic. Version 1.3 (210522) a. Process radius setLayer wrong layer (1 should be 2). b. Rework to eliminate setLayer, do in main process function. c. Miscellaneous. Version 1.2 (210516) a. Stroke weight zero error make minimum weight 0.01 b. Check for valid font by searching loaded font list. Version 1.1 (210515) a. Add option decimal mark. b. Make arrowhead option a drop-down with choices None, Simple, or Triangle. c. Miscellaneous. Rename function addLine/addText to drawLine/drawText. Rename arrowheadsLength to arrowheadsNeed; add to value +2 for min space between. UI elements tune positions. Version 1.0.3 (210514) a. Revise make font list, catch error inside loop. Version 1.0.2 (210512) a. Angle tab wrong message enable at least one. b. Revise make font list to omit fonts missing property fullName. Version 1.0.1 (210511) a. Handle error when fonts missing property fullName. b. Cease execution if error during setup. c. If default font not present, use font from style [Basic Paragraph]. Version 1.0 (210510)