I am trying to batch update Web links (AlbumObject represented by *.webloc files). I was able to update Title:
getProperties().put("title", "MyTitle")
and comment:
setComment()
I can't find how to change location of image file associated with link (not every site provides descent image for preview). In .webloc.info file imageURI is a member of HiddenPropery:
<void method="put">
<string>imageURI</string>
<object class="se.datadosen.jalbum.AlbumObjectProperties$HiddenProperty">
<void property="property">
<string>file:/C:/test/abc.png</string>
</void>
</object>
</void>
Is there any way to access this property from the groovy script?
There is still an option to modify *.webloc.info files directly from outside jAlbum. But this can be broken later if jAlbum will change the way it stores data later.
I appreciate any help or better ideas.