I would like to align a text box with the border of an image. I tried to use the path tool and link the text with the path, but the text is aligned in wrong way and I can't find the right orientation. I would have a result like this http://img154.imageshack.us/my.php?image=testo123sk4.jpg
I don't quite follow. Paragraph text is always aligned with the edge of the text box. Unlike layout programs, AE does not provide flowing along contours of a specific object. You can however add any number of rotation text animators to compensate for any issues. Possibly even linked with some simple expression.
won´t it help to position the text anchor point to its preferred position, edit/paste the path information to a null, link the text to the null and play with the position/rotation parameter of the text.
don´t have Ae in front of me, but it might be a possible solution.