Like c0d3rSh3ll said, it really depends on what you want to do… but this might get you started. Use :foreach to loop through all matching entries, and then display a particular attribute, the name for example:
/queue tree
:foreach i in=[find max-limit=1351000] do={
:put [get $i name]
}
it really depends on what you want to do
While developing script I would like to see what entries the find returns, as they appear in export/print format.