Illustrator Script Dimensions CHANGE LOG Version 6.6 (231205) a. Add version to error message. b. Miscellaneous. Version 6.5 (230319) a. Drop-down lists remove blank entry. b. Update function validateFloat. c. Update function validateInteger. Version 6.4 (230222) a. Fix language file fails to load. Version 6.3 (230209) a. Set stroke solid always to prevent inheriting dashed stroke from selection. Version 6.2 (230105) a. Update i18n. Version 6.1 (221022) a. Settings apply set list units before value inputs. Version 6.0 (221019) a. Update panel 'Settings' to match others. Version 5.9 (220928) a. Remove //@target b. Check app name and warn if wrong app for script. Version 5.8 (220802) a. Problem with tp.selection.index is actually a non-problem. Already have var 'tab' with the value needed. 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. Try/catch getting tp.selection.index to dodge AI 26.4 bug. Version 5.5.2 (220730) a. Settings current break apart single return statement. b. Settings apply and current try/catch/alert errors. Version 5.5.1 (220726) a. Disable settings.preserve() to dodge error in AI 26.4 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. Sort paragraph style and swatch names. b. 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. Other miscellaneous to match InDesign 5.2 Version 5.1 (220414) a. Fix error when top layer is hidden. Caused by 'doc.groupItems.add()' Instead call 'layer.groupItems.add()' b. Change above negates need to move group to layer. Remove instances of 'group.move(layer...)' Version 5.0 (220316) a. Correctly measure a group when it has sub-groups. There was no need for functions getGeometricBounds and getVisibleBounds. The functions were the cause of the problem. Just use object.geometricBounds and .visibleBounds like InDesign does. b. Make 'swatchText' script global. c. Make 'swatchDimensions' script global. d. Make function 'createSwatchDimensions' script function, not child of process. e. Add option paragraph style '[None]'. f. Settings load if last text swatch unknown look for 'Dimensions'. g. Remove option added v4.9 beta 1 'Alter' paragraph style. Not for scripts to be doing. h. Remove 'Alter' from all i18n files. i. Rebuild i18n. Version 4.9 (220305) 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. Fix text values not using document scale factor. j. Rebuild i18n. Included 'Alter' and 'Font' for future. k. Disable 4.9 beta feature 'alter' text paragraph style until more testing. Version 4.9 (beta 1) a. Add option 'alter' text paragraph style. 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) a. Function setList/listSelection rename list => uiList b. Function validateNumeric rename inp => uiEdit c. Function valueAsPoints rename inp => uiEdit, list => uiList d. Setting function current for name call function listSelection. e. Rename localeEuro => decimalComma. f. Update to i18n[title] in alerts. g. Rename var docScale => docScaleFactor. h. Function valueAsFloat make string before replace. Fixes error 's.replace is not a function'. i. Function valueAsFloat rename argument s => v j. Progress before try so don't have to test if progress.close is defined. k. Miscellaneous. Version 4.4 (220107) a. Arrowhead configure window remove instructional verbiage. b. Scale replace comma with dot to handle European input. c. Replace function convertUnits => valueAsPoints. d. Hoist var settings. e. Settings functions setList/listSelection rename argument control => list. f. Function validateUnits change argument order. g. Test progress.close is defined before calling it. h. Add unit abbreviations to i18n. Version 4.3 (211222) a. Fix i18n errors. b. Paragraph style define window make font size and swatch in columns. c. Increase fixed static text width from 50 to 60. d. Change characters = 5 to preferredSize = [55, -1] e. Allow comma in numeric entry for European users. Version 4.2 (211220) a. AI missing property app.activeScript. Use $.fileName instead. b. Fix errant "checkbox" set to i18n value. Version 4.1 (211216) a. Internationalize. Version 4.0 (211213) a. Catch and set var error in process function not necessary. Version 3.9 (211211) a. Reorder measurement units array to match Illustrator. Version 3.8 (211210) a. doc.scaleFactor default by OR with 1. b. Improve error handling. c. Apply settings implement function getProp. d. Apply settings updated setList function. e. Settings current function, lists set to 'createItem' replace with 'Dimensions'. f. Add options display measurements as, and style. Version 3.7 (211203) a. Extend into element add offsetVisible. b. Still trouble when undo and run again, add try/catch when get swatchText. Version 3.6 (211203) a. Rework v3.4 change to fix error. Version 3.5 (211202) a. Set stroke to overprint last. Was trying to before colored. Version 3.4 (211202) a. Fix flaw that undo leaves paragraph style with character color zero cmyk. 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 3.0 (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.9 (211102) a. CS6 fails on app.textFonts.isFontAvailable(fontName). No such element. b. Older versions lack property doc.docScale. c. Include "[Registration]" in list of swatches, so it is index zero instead of white. Version 2.8 (211025) a. 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.3 (210927) a. Rework arrowhead sizes and shift values. b. Add arrowhead configure. c. Miscellaneous. d. Add save settings. e. strokeAdjustment => offsetVisible, calc from geometric vs visible bounds. Version 2.1 (210916) a. Remove support message with email address. b. Settings load/save move file.close() to finally. Version 2.0 (210914) a. Adjust values based on doc.scaleFactor Version 1.2.2 (210910) a. Rename 'Select font name:' => 'Select font:' Version 1.2.1 (210809) a. Fix elements using right color but not swatch. b. Text overprint fill. Version 1.2 (210808) a. Rename default font 'Arial' => 'ArialMT' Version 1.1 (210807) a. Add arrowhead option 'circle'. b. Add arrowhead option 'slash'. Version 1.0.1 (210711) a. 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'. b. Miscellaneous. Version 1.0 (210617)