Action to create new window and pass it values

I’m writing a bunch of actions for automator and one of them needs to create a new window and pass it values to two different text fields. The actions are written in python, but I can write the window in applescript. The trouble is I have no idea how to do this. Is there any simple way to pass values into fields of a window created in interface builder. app(‘Finder’).window(‘MyCustomWIndow’).text_fields[1].value.set(someValue) doesn’t work, nor does the equivalent applescript. Any help would be greatly appreciated.

Please note that I am using Xcode 4 on Lion, and I am using python 2.7.

  • Al

Model: Mac Pro dual hex core
Browser: Safari 534.51.22
Operating System: Mac OS X (10.7)