"Marking trees to indicate the way" is a possible English translation for "在树上作记号指路".
Here, “marking” refers to the action of making a mark or sign, “trees” is the object being marked, and “to indicate the way” explains the purpose of marking, which is to show or guide the direction.