Leaning rather heavily on Chris Morgan's WebdavURL bookmarklet, I set out to make one which would copy the human-readable path to an item (which might be preferred by non-techies in documentation)
A quick detour to the anguilla documentation found me the methods .calculatePath() and .getTitle() - a quick regex-strip and all would be good.... here's the code (with some added whitespace goodness)
Unfortunately, while .calculatePath() works like a dream, .getTitle() seems only to work some of the time, so on other occasions I just get 'undefined' for the title. So far, I have not been able to identify, say, a particular item type that is doomed to failure. It appears to be random, no matter how alien a world-view this may be for me.
I would love to blame Tridion (maybe select is broken), but I fear it is my own interpretation of scripture that is at fault. Can anyone steer me from the rocky path of waywardness?