I have a python script that downloads many files and places the files into one of many directories, after which I manually perform some action on the file. I would like to have that script make a call to applescript (via osascript) to expand (toggle open) the folder within finder (but not open Finder, or at least not bring it to the foreground), so that the next time I open the Finder, I can more easily see which folders contain files needing to be processed. I currently color/label the folder, but it's a hassle to unlabel a folder when I'm done. It would be much easier to untoggle the folder in Folder. I've looked through various applescript books, but the closest thing I can find is `reveal` and `select`, which don't actually expand the folder. Can anybody point me in the right direction?
Much appreciation in advance.
Much appreciation in advance.