[Pythonmac-SIG] Python-"Services" on OS X?

Bob Ippolito bob@redivi.com
Mon, 14 Jan 2002 11:01:40 -0500


The problem with this is that it only works with the finder..

You don't need to use AppleEvents (directly) if you write the services 
and the shell for the embedded python interpreter in Cocoa, it's a lot 
quicker this way.

-bob

On Monday, January 14, 2002, at 09:47 AM, Bob Savage wrote:

> You might well not want to do it this way, but: There is also an 
> optional
> "services-like" feature on MacOSX. There is a little script menu (? I'm 
> sure
> Apple has a special name for these things -- one of those things that 
> are
> black icons on the right of the screen, and are available in all apps). 
> You
> can put arbitrary scripts in there (originally designed for 
> AppleScripts,
> but shell scripts, Perl scipts, and Python scripts work fine as well).
>
> For what you want, Services might be the best way to go, because the 
> concept
> of communicating with the current app (e.g. getting the selected 
> object) is
> built right in, wereas with the script menu thing, you would have to be 
> able
> to communicate with the app via AppleEvents.
>
> See <http://www.apple.com/applescript/macosx/toolbar_scripts/>.
>
> best,
>
> Bob
>
> on 1/14/02 2:33 AM, Dinu Gherman wrote:
>>
>> I'd really like to write a few "services" for OS X with Python
>> as the primary implementation language, but I'm not sure this
>> is already possible? Maybe someone could drop a few lines only,
>> saying if it is or when to expect it?
>
>
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig