Find special character AUTO_PAGE_NUMBER


i try find text frame in master, contains special characters corrent number page, when run code:

 

var doc = app.activedocument; var masters = doc.masterspreads.everyitem().textframes; for(i=0;i<masters.length;i++){      $.writeln(masters[i].contents[0]) } 

i mark not understand, this: []

and code return error "special character undefined"

var doc = app.activedocument; var masters = doc.masterspreads.everyitem().textframes; for(i=0;i<masters.length;i++){     if(masters[i].contents[0] == specialcharacters.auto_page_number){         alert("ok")     } }  

how can it?

thank in advance

why not use indesign's search tools?

 

app.findgreppreferences = null; app.findgreppreferences.findwhat = '~n'; found = app.documents[0].findgrep(); (i = 0; < found.length; i++) {   // } 

 

peter



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"