Unable to unlink .incx file???


hi,

 

i m trying unlink .incx file through javascript. tried this:

alert(app.activedocument.links.length);
alert(app.activedocument.links[0].name);
app.activedocument.links[0].unlink();

 

name of link , other properties accessible, function unlink() gets executed without error,

but operation not done. m able manually. , when link placed in actual location, unlink function works...

 

i couldnt understand problem, why m not able unlink thro code wen possible manually???

im using indesign cs3...

 

someone pls guide me....

thank you.

your code works me, assuming first link incx-file. possible reason text frame locked or on locked layer.

 

kasyan



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Can't read sms using Thinker A7 communicate with Arduino