Convert Directory to Alias

I am currently trying to convert a directory in POSIX format to an alias format but when i use

set newdir to (ob of pResults) & "/"as alias

when i run that, i get the error
“File /Users/solarmoo900/Music/test/ wasn’t found.”

any idea how I can convert that to
Mac HD:Users:solarmoo900:Music:test:

thanks for the help

Hi,

this is quite easy:

set thePOSIX to POSIX path of ((path to music folder as Unicode text) & "test") --> /Users/solarmoo900/Music/test
set theAlias to POSIX file thePOSIX as alias --> alias "Mac HD:Users:solarmoo900:Music:test:"