Forum Replies Created
-
AuthorPosts
-
February 24, 2010 at 4:38 am in reply to: Macro/Script for multiple text find-change queries? #54987
Eric Chapman
MemberOops. Should have been a backslash before the less than symbol so it would be: <January(?= d+?:+?)
February 24, 2010 at 4:37 am in reply to: Macro/Script for multiple text find-change queries? #54986Eric Chapman
MemberHere'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.jsxreferred to here (https://creativepro.com/fin…..odness.php) and found here (https://www.kasyan.ho.com.ua/sc…..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?
February 23, 2010 at 11:42 pm in reply to: Macro/Script for multiple text find-change queries? #54982Eric Chapman
MemberThank you very much! I'll work on it and see if I can figure out how to do it.
Kind Regards,
Eric
February 23, 2010 at 9:46 pm in reply to: Macro/Script for multiple text find-change queries? #51960Eric Chapman
MemberWell, 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?
February 23, 2010 at 9:45 pm in reply to: Macro/Script for multiple text find-change queries? #51959Eric Chapman
MemberDouble oops. Should have been:
<January(?= d+?:d+?)
February 23, 2010 at 9:38 pm in reply to: Macro/Script for multiple text find-change queries? #51958Eric Chapman
MemberOops. Should have been a backslash before the less than symbol so it would be: <January(?= d+?:+?)
February 23, 2010 at 9:37 pm in reply to: Macro/Script for multiple text find-change queries? #51957Eric Chapman
MemberHere'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.jsxreferred to here (https://creativepro.com/fin…..odness.php) and found here (https://www.kasyan.ho.com.ua/sc…..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?
February 23, 2010 at 4:42 pm in reply to: Macro/Script for multiple text find-change queries? #51956Eric Chapman
MemberThank you very much! I'll work on it and see if I can figure out how to do it.
Kind Regards,
Eric
February 22, 2010 at 5:09 am in reply to: Macro/Script for multiple text find-change queries? #54949Eric Chapman
MemberThank you! I'll do some studying! :)
February 22, 2010 at 4:08 am in reply to: Macro/Script for multiple text find-change queries? #54947Eric Chapman
MemberWow! 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!
February 21, 2010 at 10:09 pm in reply to: Macro/Script for multiple text find-change queries? #51953Eric Chapman
MemberThank you! I'll do some studying! :)
February 21, 2010 at 9:08 pm in reply to: Macro/Script for multiple text find-change queries? #51951Eric Chapman
MemberWow! 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!
-
AuthorPosts