Adam Morris wrote: > How can one refer to keywords (the k) given a variable?
from appscript import * s = 'some_keyword' print getattr(k, s) # k.some_keyword HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG