Sorry, please ignore my previous post. I must have had a major brain fart!
I had a bug in my script. Imagine that! LOL
To be clear, "firstObject()'s" works as expected.
Jim Underwood
aka JMichaelTX
I'm trying to mod the handler by Chris & Shane, but I can't get it to work when the sort is descending.
The original code used "lastObject()'s" with an ascending sort, so I thought I'd try "firstObject()'s" with a descending sort.
But that does not work. The "firstObject()'s" returns the entire list of file paths.
How do I get just the first file path?