Wow! you are right, when I tested the expression i posted in this thread I did it in CS5 and it worked fine but when I just tried it in CS4 it doesn’t work. I can’t believe I didn’t know about this, thanks for pointing it out. I am assuming that since it is fixed in CS5 it was a known bug.
https://aescripts.com