How do I change the sort order to by_Oldest and the display to List View in a Library using scripting.
I have tried using:
var myMenuAction1 = app.menuActions.item("$ID/by Oldest");
myMenuAction.invoke();
and
var myMenuAction = app.menuActions.item("$ID/List View");
myMenuAction.invoke();
Sometimes this works but often I get an error saying "Action not enabled"
I really struggle to understand the Object Model Viewer in the ESTK and learn better from examples. I have trawled through this forum but can find very little on Libraries so any help would be greatly appreciated.
I am able to add a Library, and get the contents of set of folders into the Library, but am having problems with changing how the assets are presented.
Thanks
Simon Kemp.