The library element should be a grouped object while placing it into inline text, otherwise your coding seems to be correct.
Have you got the result for my code, is it working? I too think that it was correct but its not working. Can u help on this regard...
1 person found this helpful
I have checked it too. First of all you need to check your library element, if it is a grouped object or set of loose frames?
Have you checked it?
Otherwise mention the exact script error or its screen shot.
It is working fine.. I think the problem is because of the two libraries are opened at the same time. First i checked in my machine it was not working and after that I tried in another machine and finally i got the result... Thanks for ur valuable time
You can address your library by it's name, so then you can have more than one opened libraries.
var Lib = app.libraries.itemByName("/*lib_name_with_extension*/");