Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( app.documents.length > 0 && app.activeDocument.textFrames.length > 0 ) {
- // Set the value of the word to look for
- function myFeatureSearchWord () {
- var searchWord1 = "*";
- }
- myFeatureSearchWord ();
- //searchWord1 = "*";
- //searchWord2 = "The";
- // Iterate through all words in the document
- // the words that match searchWord
- for ( i = 0; i < app.activeDocument.textFrames.length; i++ ) {
- function myFeatureTextArt () {
- var textArt = activeDocument.textFrames[i];
- }
- myFeatureTextArt () ;
- for ( j = 0; j < myFeatureTextArt.characters.length; j++) {
- function myFeatureChange () {
- var word = myFeatureTextArt.characters[j];
- }
- myFeatureChange () ;
- if ( word.contents == searchWord1 ) {
- word.verticalScale = 120;
- word.horizontalScale = 140;
- word.baselineShift = -3;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement