Hi.
I've been programming in Python for a while, but I'm relatively new to PyObjC and Cocoa programming in general.

I've been working on an Automator action written in Python/PyObjC, which has so far been simple. Now I want to add an options view to the bundle, and Automator doesn't seem to pick up on it. I've used the same main.xib file that Xcode generates for regular Cocoa-based actions, and I'm including it using the data_files parameter on distutils.core.setup when I build the .action bundle using py2app. The setup call is included below.

setup(
   name='HelloWorld',
   plugin=['Automator.py'],
   data_files=["main.xib"],
   options=dict(py2app=dict(
       extension=".action",
       plist='Info.plist',
   )),
)

Everything builds correctly and the action is valid and runs, but the "Options" tab for the action in Automator is disabled.

If anyone could shed some light on where I'm going wrong it would be greatly appreciated.

Thanks.

Nick.
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to