A 17-year-old has appeared in court charged with attempted murder following an alleged 'stabbing' in a Scots town centre.