This script creates a queue, adds some items to it, prints out the contents, then syncs it.
Attributed to: Thomas Lee
URL: http://www.pshscripts.blogspot.com