Inconsistent behaviour with find/change Applescript


hi

 

i trying add additional find/change queries script copying , pasting existing queries in findchangelist.txt file, , changing variables being searched/changed. having mixed success though - add new query , disables 1 of existing queries, other times add new query , doesn't work.

 

is copying/pasting of items, or there rules around order items have in?

 

for example, works fine:

 

text {find what:"mobile"} {change to:"m"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} find mobile , replace m.

 

yet this, before it, doesn't?

 

text {find what:"business"} {change to:"b"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} find business , replace b.

 

one copy of other, what's difference?

 

i love script , time saves me, more tinker it, more doesn't seem work consistently.

 

any suggestions appreciated.

 

cheers

steve

hi steve,

 

these lines work fine js version of script:

 

text  {findwhat:"business"}   {changeto:"b"}    {includefootnotes:true, includemasterpages:true, includehiddenlayers:true, wholeword:true}     find business , replace b

text  {findwhat:"mobile"}     {changeto:"m"}    {includefootnotes:true, includemasterpages:true, includehiddenlayers:true, wholeword:true}     find mobile , replace m.

 

i can't check on mac right now.

 

as alternative can use script:

http://kasyan.ho.com.ua/find_change_by_queries.html

 

kasyan



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???