Get components (path and filename) of POSIX filepath
Just ask Finder he knows how to do it :) 

tell application "Finder"
     set parentpath to POSIX path of (parent of (path to me) as string)
     set filename to name of (path to me)

     display dialog parentpath
     display dialog filename
 end tell