I don't know OSA, but I'd really love to use this script and add the items in chronological order by mtime/updated time:
var folderContents = Application('System Events').folders.byName(folderName.toString()).diskItems.name()
Any ideas on how to accomplish that?