Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: grep search result + 1 HELP PLEASE!

$
0
0

Hi,

 

sorry, syntax...

 

var found = myDocument.findGrep()[0],

pos = found.contents.indexOf("."),

add = Number(found.contents.slice( 0, pos ) + 1;

add = add + found.contents.slice(pos);

 

Jarek


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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