DISQUS

DISQUS Hello! toxicsoftware.com is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Run Python Script

Started by schwa · 10 months ago

I’ve written an Automator action that allows you to write python scripts directly inside your Automator workflow.



“Run Python Script” Automator action (catchy title) is written using Python and PyObjC (now built-in to Mac OS X 10.5). Apple alrea ... Continue reading »

4 comments

  • Ooh. This _is_ interesting.

    "Some work does need to be done to make working with any data (which is represented by NSAppleEventDescriptor objects) more convenient."

    Email me if you'd like to discuss using appscript for this. I'll be happy to help out with advice and/or code.

    HTH

    has
    --
    http://appscript.sourceforge.net
    http://rb-appscript.rubyforge.org
  • Yeah I was thinking appscript would make the perfect tool for accessing the inputs and generating outputs. I'm going to be on the road for a couple of weeks though so I probably wont be able to integrate appscript any time soon.
  • Glad HAS weighed in on Appscript--his work on that coupled with PyObjC has made Python my "go to" language on OS X if C/C++/Obj-C or Java does not _have_ to be used for some reason.

    HAS is an unsung hero in OS X-land. I hope the official recognition comes one day (if that is important to HAS). The community knows the immense value all too well already.
  • This is a fantastic idea. I've followed your lead by creating a Run Ruby Script action.

    This action uses the new Scripting Bridge framework in Leopard to turn the NSAppleEventDescriptors into more user-friendly objects. Feel free to poach the idea for use in your own action.

Add New Comment

Returning? Login