// FitToTextContent_Depth // Nathaniel Vaughn KELSO // Last modified: 2008.March.29 // Created: 2007.July.8 // at Hyattsville, MD // Version 2 // (c) nvkelso2008@gmail.com (but remove the 2008 bit) // DESC: Fits the text frame (rectangular path shapes only!) to fit the text content. // DESC: Will either shrink or expand the depth of the text box as appropriate. // TODO: Extend to work with text on a line (PATHTEXT) // TODO: watch for 4 point paths that are not rectangular // TODO: watch for 4 point paths that are rotated var includeExtraLines = 0.5; if(documents.length > 0) { doc = activeDocument; mySelection = activeDocument.selection; // If there are enough to process if (mySelection instanceof Array) { // For each of the selected items for(i=0; i