To get a single entry tourist Visa in South Africa you either have to post your application and everyone's passports to the Thai Embassy in Johannesburg or fly to Johannesburg and do it in person. It normally takes 2 days to process. There is no Thai Embassy in Cape Town. Use DHL as you still have enough time to do the application via post. Just call ahead to make sure they will do the application if you are not South African.