Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
422 B
8
Indexable
Never
// Main function to set horizontal and vertical scale of all text to 100%
function setAllTextScaleTo100() {
  var doc = app.activeDocument;
  var textItems = doc.textFrames;

  for (var i = 0; i < textItems.length; i++) {
    var textItem = textItems[i];
    textItem.horizontalScale = 100;
    textItem.verticalScale = 100;
  }

  alert("All text scales set to 100%!");
}

// Run the main function
setAllTextScaleTo100();