Photoshop Script Images Before And After CHANGE LOG Version 4.8 (231126) a. Function 'getLowestNormalLayer' recognize smart object as pixel layer. b. Progress increment before display not after. c. Hoist excessive child functions. d. Add version to error message. e. Eliminate variable 'doneInfo'. f. Miscellaneous. Version 4.7 (230822) a. Add polyfill String prototype 'trim'. Version 4.6 (221102) a. Folder property 'fsName' use 'fullName' instead. b. Function getFiles add WEBP to known Photoshop extensions. Version 4.5 (221022) a. Add zoom out after active image done. b. Move calls to runMenuItem FtOn + ZmOt from function 'processDoc' to 'process'. c. Select before and after folders add current location. d. Log contents add trailing return. e. Miscellaneous. Version 4.4 (221009) a. Folder objects global and create in btnOK.onClick. Version 4.3 (221006) a. Remove //@target b. Check app name and warn if wrong app for script. c. Miscellaneous. Version 4.2.1 (220909) a. Put 'before' image on left of double-size canvas before copy to output doc. Fix to flaw reported by Kevin.Seefeld@web.de Version 4.2 (220804) a. Close progress once at end, before that hide working. Version 4.1 (220804) a. Bring to front and close progress and working at script end. b. Close button false has no effect in Photoshop. c. Correct getFiles() comment. d. JPG save options add matte and scans. e. JPG save progressive instead of baseline. f. Replace function notify with alert and confirm. g. New solution to preserve/restore background color. h. Log new function addFile to replace logAddFileMessage. i. Remove function errorString. j. Remove sub-function logResponse. k. Settings current break apart single return statement. l. Settings apply and current try/catch/alert errors. m. Use doneMessage and return instead of throw error. Version 4.0 (220708) a. Updated function settings.setList. Version 3.9 (220614) a. Allow periods in suffix. Version 3.8 (220523) a. Remove function testCancel. Not necessary. b. Test error 'User cancel' instead of 'User cancelled'. c. Set doneInfo and doneMessage to empty strings prior to process. d. Update doneMessage, doneInfo, and notify logic. e. getFiles ignore EPS if not raster. f. Log.path set to String not Folder object. g. Script variables separate declare and define. Version 3.7 (220503) a. Function maxPixels pass actual text value, make args w, h. b. DialogModes.NO once processing. Version 3.6 (220426) a. Function validatePixels allow decimal mark even though converts to integer. b. Add DialogModes.ERROR at begin of script. c. Remove DialogModes.ALL. Version 3.5 (220327) a. Make folder options with 'Folder' button, separate from radio buttons. b. Interface miscellaneous adjustments. c. Updated function loadColorProfiles. d. Updated function validateNumeric, only for consistency (this script only used for integers). Version 3.4 (220308) a. Drop down lists make array third argument instead of in properties object. b. Validate functions pass uiEdit argument. c. Add and use 'working' window for active image. d. NEW progress window. e. Settings file encoding UTF-8. f. Add NEW function getFiles. g. Increment progress before continue. Version 3.3 (220111) a. Hoist var log. b. Hoist var settings. c. Function setList/listSelection rename control => uiList d. Function maxPixels rename uiControl wide/high => uiEdit wide/high e. Function validateNumeric rename control => uiEdit f. Function validatePixels add comment and disallow either decimal mark. Version 3.2 (211212) a. Apply settings implement function getProp. b. Apply settings updated setList function. c. Miscellaneous. Version 3.1 (211130) a. Update function notify. b. Rename and update function validateNumeric to validatePixels. Special case allows empty string meaning ignore. c. Add function (new version) validateNumeric for PPI. d. DISABLE app.refresh() after open so current image is drawn (version 2.5). Done to improve performance on Mac. Windows shows image either way. e. Miscellaneous. Version 3.0 (211029) a. Preserve preferences inside process function. b. Make JPEG quality a drop down list. c. Miscellaneous. Version 2.9 (211017) a. Updated settings code. b. Miscellaneous. c. New setList function. d. Write log to folder output. Version 2.8 (210927) a. Update settings load function. Version 2.7 (210917) a. Miscellaneous. b. Select output folder, supply current output folder name. Version 2.6 (210916) a. Remove support message with email address. b. Log save move this.file.close() to finally. c. Settings load/save move file.close() to finally. Version 2.5.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'. b. Don't need to preserve display dialogs preference. Version 2.5.4 (210627) a. Rename title and => And Version 2.5.3 (210608) a. Fix settings file error userData is null. Use documents and replace path. Version 2.5.2 (210321) a. Alert and confirm supply all arguments. Version 2.5.1 (201013) (NOT PUBLISHED) a. Remove excess after JSON code. Version 2.5 (200902) a. Refine backgroundColor preserve, set, and restore. b. Directly set text color instead of new SolidColor object. c. Add app.refresh() after app.open() for visual feedback. d. Omit original error message from log when user cancel. Version 2.4 (200831) a. Revise closeWasNotOpen function to preserve unsaved docs. b. Active image app.refresh() after comparison image creation. c. Process active image add 'working' progress message. d. Work around ExtendScript set foreground/background color bug. e. Miscellaneous. Version 2.3.2 (200828) a. Input suffix remove periods. b. Hoist var colorProfileNames. c. Array prototype indexOf. Version 2.3.1 (191220) a.Fix window button return value problem with Windows close button. Version 2.3 (190921) a. UI verbiage change for consistency, 'active' in place of 'current'. Version 2.2.1 (190911) a. Update progress window in message function. Version 2.2 (190902) a. Miscellaneous. Version 2.1.1 (190624) a. Miscellaneous. Version 2.1 (190510) a. Revise logging. b. Revise settings. c. Revise notify window. d. Better handle user cancel. e. Miscellaneous. Version 2.0 (190430) a. Revise logging. b. Custom alert/notify window with open log button. c. Revise UI wording for better clarity. d. Add option to use 'after' image without highest group. e. Restore app preferences on completion. f. Miscellaneous. Version 19.4.12 (1.1.5) a. Recognize never saved images and disallow current image option. b. Inexplicable error with one particular image. Added try/catch to resolve. Version 19.3.8 (1.1.4) a. Add license. Version 19.2.24 (1.1.3) a. Update settings file error handling. b. Miscellaneous. Version 19.2.21 (1.1.2) a. Max pixels scale both width and height (prior width only). b. Fix logged file name undefined (document lacks fsName property). Version 19.2.17 (1.1.1) a. Force foreground/background colors to black/white. b. Miscellaneous. Version 19.1.15 (1.1) a. Add options to match file names exactly or if contains portion of name. Version 19.1.5 (1.0) a. Initial release.