Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Browsing all 37788 articles
Browse latest View live

Re: Automate manual work with Tables

Having been burned badly in the past copying tables between documents, I'm reluctant to guide you down that path -- although in the description you posted in the opening message you never seem to be...

View Article


Re: Decrementing a date

Thanks again Dave for responding. You bring up a good point about needing to create a month/day boundary handler. I have been playing with your scripting suggestions and I think the biggest problem I'm...

View Article


Re: Decrementing a date

Thanks Jongware. This was very helpful. I got errors with your scripting solution from that thread but it gave me the basic structure for the script that I was looking for.  I've done a lot of...

View Article

Re: Decrementing a date

Here's some code that shows one way to do it: var myDoc = app.documents[0]; var myStyle = myDoc.paragraphStyles.item("StyleName"); setupFindGrep("~v \\d+","");...

View Article

Re: Decrementing a date

Thanks very much for this Dave. I’m learning a lot with this. Unfortunately, it gave me an error with this at line 12: Source:     myFind[j].characters.itemByRange(startIndex,endIndex).texts[0].content...

View Article


Re: Decrementing a date

No, my script (which works, I tested it) is searching for a text variable followed by a number. It looks like you retyped the script because the line quoted in the error message is not right. You have...

View Article

Re: Decrementing a date

Yeah, that was just a typo I made in the Error message when trying to transcribe it. It wasn’t in the script I ran. Here’s the actual error (copied &...

View Article

Re: Decrementing a date

Ah, I realized that I had tested it with only one instance. Putting a second instance in the story gives me the same error. I'll look deeper. Dave

View Article


Re: Decrementing a date

I've found the bug. That line should read:  myFinds[j].parentStory.characters.itemByRange(startIndex, endIndex).texts[0].contents = decString; That's the danger of working with minimal test documents....

View Article


Re: Decrementing a date

Now I get: -----------------------------------------------JavaScript Error!Error Number: 45Error String: Object is invalidEngine: mainFile: /Applications/Adobe InDesign CC/Scripts/Scripts...

View Article

Re: Decrementing a date

Do you have any instances inside tables? Dave

View Article

Re: how to check whether it is a character or a number using javascript..?

Thank u so much..Its working.

View Article

Re: Automate manual work with Tables

Thanks Dave for the helpful answer. After reading your reply i figured out that this is what I actually needed.I had no clue how to convert table to text and store that resulting text in a variable for...

View Article


Re: Automate manual work with Tables

Ruq, to use the grep, first set the preferences usingapp.findGrepPreferences      andapp.changeGrepPreferences  Then myText.changeGrep() or myText.findGrep(). both methods return an array of found...

View Article

Re: find highlighted text

Do you need to do it in a script? if not, a simple find/change will do the trick (in the find format dialog you gave a category called "conditions". select the one nedded and replace with nothing).  if...

View Article


Re: Automate manual work with Tables

Thanks. I will surely check that out. If possible please shed some light on how to switch documents via scripting. Normal scenerio is that I have 2 docs open.doc1 is source doc2 is destination.I need...

View Article

Re: find highlighted text

Onnozel wrote The background of the text is YELLOW. so I don't think he knows what the names of these conditions are. This will remove the text in any condition with 'background is YELLOW':...

View Article


Re: open multiple extensions

Hi Trevor, You gave me the best method, its working fabulous, also I learned form you Thank you very much  David

View Article

Re: Decrementing a date

While temptation to use "parentStory" in that statement causing us the problem is almost irresistible, it is actually better to use just "parent". If the found text is in a story then the two are...

View Article

How to capture document changes using Javascript

Hi, Can anyone help me on the below request. Is it possible to capture document change event through Javascript.   For example, If i delete a word, then the event should be triggered and alert should...

View Article
Browsing all 37788 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>