function to copy the path to a file to your clipboard on mac