Thanks Tomas,
Shame there’s nothing better for this, I wish Adobe would expose more information to scripting developers. I made a similar script for Nuke and it was so simple, it only took a handful of lines of code.
I did use string parsing as you suggest (looking for the slash) but it isn’t a perfect solution. It will work for most cases though, so that combined with a helpful message box is as good as I’m getting until Adobe revamps extendscript I guess!
– Spencer