Advertisement
Guest User

Find & Replace

a guest
Dec 20th, 2012
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ( app.documents.length > 0 && app.activeDocument.textFrames.length > 0 ) {
  2. // Set the value of the word to look for
  3. function myFeatureSearchWord ()  {
  4.     var searchWord1 = "*";
  5.     }
  6. myFeatureSearchWord ();
  7. //searchWord1 = "*";
  8. //searchWord2 = "The";
  9.  
  10. // Iterate through all words in the document
  11. // the words that match searchWord
  12. for ( i = 0; i < app.activeDocument.textFrames.length; i++ ) {
  13. function myFeatureTextArt () {
  14.     var textArt = activeDocument.textFrames[i];
  15. }
  16. myFeatureTextArt () ;
  17.  
  18. for ( j = 0; j < myFeatureTextArt.characters.length; j++) {
  19. function myFeatureChange () {
  20.     var word = myFeatureTextArt.characters[j];
  21. }
  22. myFeatureChange () ;
  23.  
  24. if ( word.contents == searchWord1 ) {
  25.  
  26. word.verticalScale = 120;
  27. word.horizontalScale = 140;
  28. word.baselineShift = -3;
  29. }
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement