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

Re: Place Cursor before a specific word

$
0
0

Hi,

 

cursor moved before first word "hotel" found in myDoc:

 

myDoc = app.activeDocument;
app.findTextPreferences = null;
app.findTextPreferences.findWhat = "hotel";
mWord = myDoc.findText()[0];if (mWord)      mWord.insertionPoints[0].select();else     (alert ("not found") ); 

 

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>