Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • in reply to: Macro/Script for multiple text find-change queries? #54987
    Eric Chapman
    Member

    Oops. Should have been a backslash before the less than symbol so it would be: <January(?= d+?:+?)

    in reply to: Macro/Script for multiple text find-change queries? #54986
    Eric Chapman
    Member

    Here's what I did since the string does not always include 3 digits before the colon and 3 after it, and this worked fine to find the proper ones and change them (one at a time).

    In GREP “Find what:” <January(?= d+?:+?)

    In GREP “Change to:” Januar

    Now I'm trying to figure out how to record about 60 of these in one place. I have installed the

    RecordFindChange_CS3_Kas.jsx

    referred to here (https://creativepro.com/fin&#8230;..odness.php) and found here (https://www.kasyan.ho.com.ua/sc&#8230;..ories.html). I can see how it records the current parameters in the Find-Change dialog box to a text document called “findChangeStrings.txt”, but I haven't gotten the InDesign Script (that comes with ID CS4) called

    FindChangeByList.jsx

    to be able use what is saved in that file. I would assume the new text file with the intended Find-Change items saved by the RecordFindChange script should be saved maybe in the “Find Change Support” folder or where the original FindChangeList.txt file was. But I tried that and tried to run the FindChangeByList.jsx script, and nothing happened.

    I also noted that the new text file still has some other stuff at the top for a text query. Maybe that must be deleted first? I tried that, but it also didn't work. Can there only be one FindChangeList.txt file? Does it have to have that name to run in the script? How should I save different txt files for this script and where should they be stored? How are they accessed?

    in reply to: Macro/Script for multiple text find-change queries? #54982
    Eric Chapman
    Member

    Thank you very much! I'll work on it and see if I can figure out how to do it.

    Kind Regards,

    Eric

    in reply to: Macro/Script for multiple text find-change queries? #51960
    Eric Chapman
    Member

    Well, some of it's me. I left out a “d”, etc. But the forum won't let me type in a backslash – it deletes it. How do I?

    in reply to: Macro/Script for multiple text find-change queries? #51959
    Eric Chapman
    Member

    Double oops. Should have been:

    <January(?= d+?:d+?)

    in reply to: Macro/Script for multiple text find-change queries? #51958
    Eric Chapman
    Member

    Oops. Should have been a backslash before the less than symbol so it would be: <January(?= d+?:+?)

    in reply to: Macro/Script for multiple text find-change queries? #51957
    Eric Chapman
    Member

    Here's what I did since the string does not always include 3 digits before the colon and 3 after it, and this worked fine to find the proper ones and change them (one at a time). 

    In GREP “Find what:” <January(?= d+?:+?)

    In GREP “Change to:” Januar

    Now I'm trying to figure out how to record about 60 of these in one place. I have installed the

    RecordFindChange_CS3_Kas.jsx

    referred to here (https://creativepro.com/fin&#8230;..odness.php) and found here (https://www.kasyan.ho.com.ua/sc&#8230;..ories.html). I can see how it records the current parameters in the Find-Change dialog box to a text document called “findChangeStrings.txt”, but I haven't gotten the InDesign Script (that comes with ID CS4) called 

    FindChangeByList.jsx

    to be able use what is saved in that file. I would assume the new text file with the intended Find-Change items saved by the RecordFindChange script should be saved maybe in the “Find Change Support” folder or where the original FindChangeList.txt file was. But I tried that and tried to run the FindChangeByList.jsx script, and nothing happened.

    I also noted that the new text file still has some other stuff at the top for a text query. Maybe that must be deleted first? I tried that, but it also didn't work. Can there only be one FindChangeList.txt file? Does it have to have that name to run in the script? How should I save different txt files for this script and where should they be stored? How are they accessed?

    in reply to: Macro/Script for multiple text find-change queries? #51956
    Eric Chapman
    Member

    Thank you very much! I'll work on it and see if I can figure out how to do it.

    Kind Regards,

    Eric

    in reply to: Macro/Script for multiple text find-change queries? #54949
    Eric Chapman
    Member

    Thank you! I'll do some studying! :)

    in reply to: Macro/Script for multiple text find-change queries? #54947
    Eric Chapman
    Member

    Wow! You've encouraged me that it's possible!

    However, I'm afraid it's going to take a while for me to catch on to this. I've never used scripts at all (in OS X or in InDesign), so I need to learn some things. I subscribe to lynda.com, so maybe I could watch some video on how to do scripts, etc. there. However, I don't see anything on CS4 and scripting there.

    One thing that will make my use slightly more complicated is that it'd be best to check the text following the to-be-changed-text and see if it is followed by any number of digits (up to 3) , a colon and any number of digits (up to 3). If so, the change should be made; if not, it should not be made. I realize all that is possible, and now I see how ID intends for us to do it. But this seems rather daunting to me. I don't even know how to run the scripts :) I'd like to see a sample file of say all the English month names being converted to another language via script if and only if they are followed by a space and up to 3 digits and then a colon and up to 3 digits again. So “January 123:321” would be changed to “Januar 123:321”, but “January” alone would not be. Then I might be able to imitate what I need and use it.

    Any idea where best on the web to learn the scripting I need? (I have lynda.com's ID Beyond the Basics DVD (by David Blatner), but it doesn't seem to have any scripting chapters in it.

    Sincere thanks!

    in reply to: Macro/Script for multiple text find-change queries? #51953
    Eric Chapman
    Member

    Thank you! I'll do some studying! :)

    in reply to: Macro/Script for multiple text find-change queries? #51951
    Eric Chapman
    Member

    Wow! You've encouraged me that it's possible!

    However, I'm afraid it's going to take a while for me to catch on to this. I've never used scripts at all (in OS X or in InDesign), so I need to learn some things. I subscribe to lynda.com, so maybe I could watch some video on how to do scripts, etc. there. However, I don't see anything on CS4 and scripting there.

    One thing that will make my use slightly more complicated is that it'd be best to check the text following the to-be-changed-text and see if it is followed by any number of digits (up to 3) , a colon and any number of digits (up to 3). If so, the change should be made; if not, it should not be made. I realize all that is possible, and now I see how ID intends for us to do it. But this seems rather daunting to me. I don't even know how to run the scripts :) I'd like to see a sample file of say all the English month names being converted to another language via script if and only if they are followed by a space and up to 3 digits and then a colon and up to 3 digits again. So “January 123:321” would be changed to “Januar 123:321”, but “January” alone would not be. Then I might be able to imitate what I need and use it.

    Any idea where best on the web to learn the scripting I need? (I have lynda.com's ID Beyond the Basics DVD (by David Blatner), but it doesn't seem to have any scripting chapters in it.

    Sincere thanks!

Viewing 12 posts - 31 through 42 (of 42 total)