convert URL path to alias

hello,
i would like to know that there is a way to convert a URL path
(example “file://localhost/Users/le/Desktop/se%20a%CC%83e%CC%81d.txt”) to a alias or POSIX path.
I dont want just to replace de “file://localhost” to “” and the %20 to “”, because i have lots othe chacteres like %83e an etc.

there is a way to let applescript make the job and automatic convert a url path to a alias??

thanks very much
leandro

http://bbs.applescript.net/viewtopic.php?id=12943