Dealing with file paths in AppleScript is the bane of my existence. Casting to and from POSIX and alias never works correctly.
Don't have an account? You can sign up here