Yes to copying the whole code.
I don’t know what happens when you open a dialogue box on a Mac (to find the data folder). Have you managed to run the code yet?