def windowposition(folder, pos=None):
 fsr = Carbon.File.FSRef(folder)
 folder_alias = fsr.FSNewAliasMinimal()
 openwindow(fsr)
 if (not pos):
  return _getwindowposition(folder_alias)
 if (type(pos) == InstanceType):
  pos = (pos.h, pos.v)
 return _setwindowposition(folder_alias, pos)

def windowposition ( folder , pos = None ) : fsr = Carbon . File . FSRef ( folder ) folder_alias = fsr . FSNewAliasMinimal ( ) openwindow ( fsr ) if ( not pos ) : return _getwindowposition ( folder_alias ) if ( type ( pos ) == InstanceType ) : pos = ( pos . h , pos . v ) return _setwindowposition ( folder_alias , pos )
set the position of a finder window for folder to pos= .