Take resolution from Synctool (which reads it from the Shotgun website). Should also work with temporary folders, but is untested so far.