def addOpenEventSupport(root, flist):
 def doOpenFile(*args):
  for fn in args:
   flist.open(fn)
 root.createcommand('::tk::mac::OpenDocument', doOpenFile)

def addOpenEventSupport ( root , flist ) : def doOpenFile ( * args ) : for fn in args : flist . open ( fn ) root . createcommand ( '::tk::mac::OpenDocument' , doOpenFile )
this ensures that the application will respont to open appleevents .