How can I download genePred file from UCSC?
It turned out that using table browser on UCSC we could download an output with all fields. That output actually contains a GenePred file but has one extra column on the left end.

The genePred file format definition is here.