DISQUS

toxicsoftware.com: Run Python Script

  • has · 1 year ago
    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
  • schwa · 1 year ago
    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.
  • Digginestdogg · 1 year ago
    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.
  • Jason Foreman · 1 year ago
    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.
  • happydenn · 2 months ago
    Hello,

    Just recently I'm using this action with Automator from 10.5.7
    How do I output data to the next action? I've tried to return but the next action can't seem to get anything.

    Also another question, how do I access Automator variables using python?

    Thanks for the help!
  • myxibrium · 2 months ago
    I'm having the same problem!
    When I return the input directly, this is similar to what I get:
    {current application, current application, current application}

    What the heck is current application?
  • wolken11 · 1 month ago
    How to get it working on OS 10.5.8 with Automator 2.0.4? Double clicking opens Automator, but nothing more. Manually opening says the action can not be opened.
    I use the 0.1 version downloaded from Apple as all the links here are dead :-(

    Any idea?
  • schwa · 3 weeks ago
    Have tried to update this for Snow Leopard and had mixed results.

    http://bitbucket.org/schwa/toxic-public/changes...