A Greenock man will stand trial next year charged with an attempted murder in the town.