InDesign Script PDF Place And Export CHANGE LOG Version 5.9 (230821) a. Add polyfill String prototype 'trim'. b. Miscellaneous. Version 5.8 (230308) a. Assign e to error before test for user cancel. b. Page count divisible insert 'is'. c. Update function validateFloat. d. Rebuild i18n. Version 5.7 (230222) a. Read script folder for i18n make consistent with AI and PS. b. Update copyright year. Version 5.6 (221227) a. If new document is more than 1 page, remove the excess. b. Add missing verbiage and update i18n. Version 5.5 (221111) a. Fix error line 1269 when all output disabled. Version 5.4 (221102) a. Folder property 'fsName' use 'fullName' instead. b. Remove needless property fullName of path; the path is the same thing. c. When combine use current folder property path instead of parent property fullName. d. Force suffix move to OK button handler. e. Combine to a single document, update output folder when both enabled and disabled. f. Select input folder, set output based on combine to single document. Version 5.3 (221022) a. Select process folder add prompt. b. File and Folder objects global and create in btnOK.onClick. c. Settings apply set list units before value inputs. d. Rename 'txtProcessFile' => 'txtFileInput'. e. Rename 'txtProcessFolder' => 'txtFolderInput'. f. Rename 'processFilePath' => 'fileInputPath'. g. Miscellaneous. Version 5.2 (221017) a. Remove //@target b. Check app name and warn if wrong app for script. c. Update panel 'Settings' to match others. Version 5.1 (220806) a. Settings current break apart single return statement. b. Settings apply and current try/catch/alert errors. c. Improved done alert or error. d. Use doneMessage instead of var abort. e. Remove working window use progress for all. f. Show indd/pdf file name for progress update. g. Rebuild i18n. Version 5.0 (220709) b. Need useless catch in process function or error does not bubble up. c. Use doneMessage instead of var abort. d. Implement better response when placing PDF fails. Version 4.9 (220708) a. Updated function settings.setList. b. Settings replace list add empty item so minimum two items. c. Settings list add empty item so minimum two items. d. Settings unlock move to listSettings.onChange. Version 4.8 (220616) a. Implement file.openDlg for existing files. Version 4.7 (220614) a. Allow periods in suffix. b. Equals or not null make strict comparison. c. Update function validateFloat (argument negative). Version 4.6 (220416) a. Fix NaN error because bleed vars not initialized to zero. b. Errors thrown in placePdfPages leave error not convert to abort string. Version 4.5 (220406) a. Test if master pages is null before setting master page margins. Version 4.4 (220307) a. Replace 'Processing complete' => 'Done' b. Replace 'User canceled' => 'Canceled' c. Replace done alert if statement with 'abort || "Done"'. d. Drop down lists make array third argument instead of in properties object. e. NEW progress window. f. Validate functions pass uiEdit argument. g. Do not call changeOption() inside validate functions. h. i18n file encoding UTF-8. i. Settings file encoding UTF-8. j. Use working window for single file, progress for folder. k. Revise completely how progress/working is conveyed and controlled. l. Don't close doc on error or skipped file don't continue. m. Don't save INDD on error or skipped file don't continue. n. Rename... pageX => pageW pageY => pageH pdfX => pdfW pdfY => pdfH halfPageX => halfPageW o. Folder getFiles pass function to ignore hidden and only match .pdf. p. Rebuild i18n. q. Miscellaneous. Version 4.3 (220114) a. Miscellaneous, minor. Version 4.2 (220110) a. Fix natural sort only works with strict non-equality. b. Hoist var settings. c. Edited comments. d. Function setList/listSelection rename control => uiList e. Function validateUnits rename inp => uiEdit, list => uiList f. Function valueAsPoints rename inp => uiEdit, list => uiList g. Rename localeEuro => decimalComma Version 4.1 (220102) a. Eliminate bool var abort, rename doneMessage => abort, string message. b. Function process wrap all in try/catch/finally. c. Combining files, When error opening PDF, remove last page added. d. Remove function handleFail; put handling once in files loop. e. Make var doc script global. f. Rework pdfPlace loop for better error handling. g. Allow comma in numeric entry for decimal comma. h. Measurement units drop-down list for bleed limit. i. Function setList/listSelection rename control => uiList. j. Miscellaneous. Version 4.0 (211212) a. Function createDoc rename var error => fail. b. Rename function handleError => handleFail. c. Apply settings implement function getProp. d. Apply settings updated setList function. e. Read i18n catch (_) empty variable. f. Fail confirm message put message first, then error message. g. Miscellaneous. Version 3.9 (211129) a. Printer spreads broken. Group pages, then move group to x,y -bleedDoc. Version 3.8 (211129) a. Improve folder variable names and validation. b. Add function validateFloat for bleed limit. c. Adjust UI widths folder path, PDF preset, and list settings. d. Changes to i18n strings. e. Miscellaneous. Version 3.7 (211017) a. Updated settings code. b. Miscellaneous. c. New setList function. d. Lists text default from defaultSettings, otherwise empty strings in defaultSettings. Version 3.6 (210927) a. Update settings load function + other miscellaneous. Version 3.5 (210917) a. Miscellaneous. b. Select output folder, supply current output folder name. Version 3.4 (210916) a. Remove support message with email address. b. Settings load/save move file.close() to finally. Version 3.3.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'. Version 3.3 (210705) a. Tighten spacing panels layout and output. b. Revert to normal spacing panel support. c. Reduce folder text width to reduce window width. d. Increase settings drop-down width to use available space. Version 3.2.5 (210628) a. Rename title and => And b. Fix transparentBackground property misspelled. Version 3.2.4 (210623) a. Settings.add() rename symbol name => inpName Version 3.2.3 (210621) a. Support panel tighten spacing. b. Save settings add replace option. Version 3.2.2 (210608) a. Select folder no text prompt. b. Select file, no period on text prompt. c. Fix settings file error userData is null. Use documents and replace path. Version 3.2.1 (210608) a. Zoom at end use active window, show pasteboard. Version 3.2 (210526) a. Fix reader spreads broken at 3.0 update. Version 3.1 (210425) a. Use script preferences measurement units. b. Preserve preferences inside process function. c. Miscellaneous. Version 3.0 (210403) a. New place PDF engine to better handle PDFs with problem page boxes. Version 2.6.1 (210321) a. Alert and confirm supply all arguments. Version 2.6 (210125) a. getFiles implement natural sort. Version 2.5 (201228) a. Process folder sort files by name. Version 2.4.1 (201219) a. Mac open pdf recognize alias in Macintosh file filter. b. Windows open pdf use Windows file filter. c. Open pdf validate extension as .pdf Version 2.4 (201029) a. Add option transparent background. b. Remove legacy settings. Version 2.3.2 (201013) a. UI consistency. b. Miscellaneous. (remove excess after JSON code; update copyright year; update i18n) Version 2.3.1 (200828) a. Input suffix remove periods and trim. Version 2.3 (191220) a. Add option Printer Spreads Rotate. b. Add "Rotate" to .i18n for localization. c. Fix window button return value problem with Windows close button. d. Disable/restore export preference view PDF. Version 2.2.1 (190911) a. Update progress window in message function. Version 2.2 (190909) a. Restore measurement units. b. Fix flaw when combining folder of PDFs with option include bleed. Version 2.1 (190902) a. Miscellaneous. Version 2.0 (190624) a. Revise settings. b. Restore altered app preferences on completion. c. Miscellaneous. Version 19.4.13 (1.12.1) a. Fix progress not updating when exporting PDF. b. Progress steps to correct number 3 not 4. Version 19.3.8 (1.12) a. Add license. Version 19.3.1 (1.11.1) a. Cancel button click handler wrap in function. Version 19.2.24 (1.11) a. Update settings file error handling. b. Document margins set to zero, single column. c. Internationalization. d. Change max bleed from inches to points to avoid inch vs mm problem. e. Change ruler preferences from inches to points. e. Max bleed value restrict to numeric only. f. Max bleed blank becomes "0". g. Miscellaneous. Version 19.2.21 (1.10.1) a. Miscellaneous. Version 19.2.12 (1.10) a. Add File.decode() to PDF file name replace confirm. b. Remove try/catch during PDF export. Let throw to higher try/catch. Version 18.12.9 (1.9) a. Fix typo should be "error has occurred." b. Settings file named by title instead of app.activeScript. c. Revise settings object. d. Input max bleed missing call changeOption(). e. Revise listSettings object, add settings.lock property. f. Miscellaneous. Version 18.11.12 (1.8) a. Store settings in user data folder. Version 18.9.26 (1.7.2) a. Miscellaneous. Version 18.9.23 (1.7.1) a. Fix flaw, delete setting confirmation removes setting from UI when responding 'no.' Version 18.8.19 (1.7) a. Revise settings object. b. Remove obsolete function settings restoreLast. c. Add function configureUi. d. Wrap work in process function, wrapped in try/catch. e. Miscellaneous. Version 18.5.21 (1.6) a. No longer output failed document when other documents are open. b. Revise PDF place pages program logic. c. Documents in spreads that contain a single page midway no longer halt placing pages. d. Properly handle reader spreads when page 1 is a spread rather than single page cover. e. Add option to limit bleed. f. Spine effect master pages set margins to zero. g. Miscellaneous. Version 18.5.20 (1.5) a. Revise progress bar. b. Remove close button from progress bar. Version 18.5.1 (1.4) a. Catch processing errors and alert user. b. Fix unhandled exception when combining PDFs and include bleeds, but a page lacks bleed. c. No longer close document on PDF box error. Version 18.4.30 (1.3) a. Original Name +, replace illegal characters and alert user. b. Disable option Pages from spreads when processing folder. c. Read legacy settings removed. Version 17.12.11 (1.2) a. Create saved settings [Default] if it does not exist. b. Create saved settings file if it does not exist. c. Disable delete settings button if none are selected or [Default] is selected. d. Add default PDF Preset, first discovered in list with PDF and X-4 in name. Version 17.11.16 (1.1) a. Perform Spine effect option only when facing pages enabled. b. If facing pages disabled, remove excess master page. c. Fix unhandled exception when include bleed but PDF has no bleed box.