A man is on trial accused of trying to kill the owner of a North Yorkshire vinyl shop.