Unfortunately, and unfairly, I think luck has a huge amount to do with it. Does your cv arrive the week that recruiting starts? Does your background fit in wth whatever prejudices the airline has about modular/integrated/instructors/older/younger or female pilots? Do you know someone who can introduce you to the right people?
Been said before but staying current and perserverence are the two qualities that are most likely to win you the first job. Good luck one and all.
PS I'd rather be lucky than good anyday.