JS Obtain list of elements in library asset
I am trying to develop a script to obtain a list of elements in each library asset, and the link status of each. The workaround has been to place each asset onto a page and then use the Links window to check the status of the elements.
This code returns [object Asset]:
var libList = app.libraries.item(0).assets.item(0).getElements();
This returns the name of the asset:
var libName = app.libraries.item(0).assets.item(0).name;
The eventual goal is to write a script for off-site disaster recovery. It would relink each library asset element to a backup copy in the new location.
Is this possible without writing a script to place each asset, update the links and then put it back in the library?
Thanks.
Dick Conrad
