InDesign Script PDF Export Single Pages CHANGE LOG Version 4.9 (231217) a. Property doc.filePath is valid when doc.saved is false. b. Wrap get doc.filePath in try/catch. c. Progress increment before display not after. d. Add version to error message. e. Miscellaneous. Version 4.8 (230821) a. Set 'folderXxxxxLastValid' once selected. b. Miscellaneous. Version 4.7 (230225) a. Miscellaneous. Version 4.6 (230222) a. Read script folder for i18n make consistent with AI and PS. b. Update copyright year. Version 4.5 (221229) a. Update i18n. Version 4.4 (221029) a. Rename 'outputFolder' => 'folderOutput'. b. Simplify variable docFolder to decode(doc.filePath). c. New function setFolder climb folder hierarchy until one exists. d. Add script variables 'folderXXXXLastValid'. e. Folder property 'fsName' use 'fullName' instead. Version 4.3 (221019) a. Select output folder add prompt. b. Folder objects global and create in btnOK.onClick. c. Miscellaneous. Version 4.2 (221017) a. Save settings include options allow when name is [Default]. b. Settings add listReplace use double NOT to test name and output folder. c. Settings add rename 'cbIncludeOutputFolder' => 'cbIncludeFolderOutput'. d. Settings apply add function setFolder. e. New handling settings base name and output folder. f. Miscellaneous. Version 4.1 (221010) a. Remove //@target b. Check app name and warn if wrong app for script. c. Update panel 'Settings' to match others. d. Miscellaneous. Version 4.0 (220804) a. Settings current break apart single return statement. b. Settings apply and current try/catch/alert errors. c. Improved done alert or error. Version 3.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 3.8 (220615) a. File name replace illegal characters make greedy. b. File name event handlers use 'this'. c. Equals or not null make strict comparison. Version 3.7 (220601) a. Restore language extensions to script scope. Version 3.6 (220527) a. Update check for missing links and overset text. b. Move language extensions to global scope. c. Miscellaneous. Version 3.5 (220523) a. Update regex for baseNameDefault. Version 3.4 (220406) a. Rename defaultOutputFolder => folderOutputDefault c. Rename btnOutputFolder => btnFolderOutput d. Rename txtOutputFolder => txtFolderOutput e. Remove requirement doc must be saved. f. Load settings use last output folder test if exists. g. Rename defaultPdfPresetName => pdfPresetNameDefault h. Rename defaultBaseName => baseNameDefault i. Rebuild i18n. Version 3.3 (220307) a. Drop down lists make array third argument instead of in properties object. b. Do not call changeOption() inside validate functions. c. NEW progress window. d. i18n file encoding UTF-8. e. Settings file encoding UTF-8. Version 3.2 (220114) a. Reset script preferences. b. Miscellaneous. Version 3.1 (220111) a. Move progress before try so progress.close always defined in finally. b. Function setList/listSelection rename control => uiList. c. Hoist var settings. d. Function validateNumeric rename argument control => uiEdit. e. Edited comments. f. Update defaultSettings to numbers as String type. g. Accept decimal comma (but not recognize; values are integer). h. Update i18n. Version 3.0 (211212) a. Test if progress defined before calling close. b. Apply settings implement function getProp. c. Apply settings updated setList function. d. Read i18n catch (_) empty variable. e. Miscellaneous. Version 2.9 (211129) a. Replace function forceDigits with validateNumeric. b. Miscellaneous. Version 2.8 (211017) a. Updated settings code. b. Miscellaneous. c. Input separator don't OR defaultSettings. Could be empty string. d. New setList function. e. Lists text default from defaultSettings, otherwise empty strings in defaultSettings. Version 2.7 (210927) a. Update settings load function + other miscellaneous. Version 2.6 (210917) a. Miscellaneous. Version 2.5 (210916) a. Remove support message with email address. b. Settings load/save move file.close() to finally. Version 2.4.6 (210730) a. Button reset on click end with focus base name input. Version 2.4.5 (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 2.4.4 (210623) a. UI adjustments (window too wide, settings too narrow). b. Add settings replace option, but correct to keep include baseName/folder. Version 2.4.3 (210623) a. REVERT save settings change. Screwed up. b. Also support panel spacing, back to how it was. c. Left new i18n entries for replace settings. Version 2.4.2 (210621) a. Support panel tighten spacing. b. Save settings add replace option. Version 2.4.1 (210608) a. Fix settings file error userData is null. Use documents and replace path. Version 2.4 (210426) a. Improved error handling and preferences preservation. Version 2.3.1 (210321) a. Alert and confirm supply all arguments. Version 2.3 (201026) a. On click option export background, clear settings name. b. Enforce section label when section numbering and multiple sections. c. Remove legacy settings. Version 2.2.3 (201013) a. UI consistency. b. Miscellaneous. (remove excess after JSON code; update copyright year; update i18n) Version 2.2.2 (191220) a. Fix window button return value problem with Windows close button. Version 2.2.1 (191217) a. Disable/restore export preference view PDF. Version 2.2 (191007) a. Restore check for unique pages removed at version 1.8. Entire check was removed when only needed to remove conversion of page label to number. Version 2.1.1 (190911) a. Update progress window in message function. Version 2.1 (190902) a. Fix syntax error settings.add function. b. Miscellaneous. Version 2.0 (190624) a. Revise settings. b. Restore altered app preferences on completion. c. Miscellaneous. Version 19.3.8 (1.11) a. Add license. Version 19.2.24 (1.10) a. Update settings file error handling. b. Miscellaneous. Version 19.2.21 (1.9.1) a. If any exist, load first .i18n discovered. b. Add language key at top of i18n data. Version 19.2.17 (1.9) a. Internationalization. b. Miscellaneous. Version 18.12.9 (1.8) a. Fix typo should be "error has occurred." b. Settings file named by title instead of app.activeScript. c. Revise settings object. d. Revise listSettings object, add settings.lock property. e. Pages all/range set once on init, not each call to configureUi. f. Fix flaw, section numbering and include section label option. g. Fix flaw, section numbering minimum digits. h. Restore (and make optional) background export. i. Miscellaneous. Version 18.11.12 (1.7) a. Store settings in user data folder. Version 18.9.26 (1.6.2) a. Miscellaneous. Version 18.9.22 (1.6.1) a. Fix flaw, delete setting confirmation removes setting from UI when responding 'no.' Version 18.8.19 (1.6) a. Add check for overset text. b. Add check for missing or modified links. Version 18.7.18 (1.5) a. Revise settings object. b. Remove obsolete function settings restoreLast. c. Add function configureUi. d. Update progress function. e. Wrap work in process function, wrapped in try/catch. f. Miscellaneous. Version 18.5.30 (1.4) a. Retain last used base name and output folder if document name hasn't changed. Version 18.5.15 (1.3) a. Remove close button from progress bar. b. Catch processing errors and alert user. Version 18.5.7 (1.2.1) a. Fix [Default] not resetting output folder. Version 18.4.29 (1.2) a. Disable delete settings button when initial [Default] settings are created and no other settings yet exist. b. Export PDFs synchronously instead of asynchronously because changes in OS High Sierra seriously degrade background exporting performance. c. Because removal of background exporting, add a progress bar. d. Fix unhandled exception when saved output folder no longer exists. Version 17.10.18 (1.1) a. Add reset button to restore default base name. b. Create saved settings [Default] if it does not exist, and saved settings file if it does not exist. c. Disable delete settings button if none are selected or [Default] is selected. d. Allow disabling Use section label when all page numbers are unique, even when multiple sections/layouts exist.