[Pythonmac-SIG] Python-"Services" on OS X?
Bob Ippolito
bob@redivi.com
Mon, 14 Jan 2002 05:22:03 -0500
I've played with services myself.. and I see no reason whatsoever why
doing this should give you any problem. Writing a service is quite easy
really
You can check out a simple set of services that I wrote at
http://redivi.com/~bob/URLServices.tgz -- It doesn't use python, but it
wouldn't be too hard for it to do so.
One thing about services is that they're not just restricted to text, it
can be files or images or anything else, which leaves plenty of
possibilities
The only problem with the Mac OS X implemenation of services.. well,
there are two.
1) services and carbon applications that haven't been modified to
explicitly support services don't play well.
2) You must logout (maybe just relaunch finder?) to reliably remove or
add new services.
-bob
On Monday, January 14, 2002, at 04:07 AM, Adam Eijdenberg 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?
>
> If this hasn't yet been done, then something that would be kind of cool
> would be a service that takes the current selection, evaluates it as
> Python code and replaces it with the output.
>
> This shouldn't be too hard to implement, but I know nothing about
> services. Might have a look though if no one has already done this.
>
> Once this were done, such as architecture could be extended to instead
> take the selection, apply an arbitrary python function to it (ie, one
> that you wrote) and replace the selection with the result.
>
> Has any work on such a service been started?
>
> Kind regards,
> Adam Eijdenberg
> Switched on Software
>
> adam@switchedonsoftware.com
> http://www.switchedonsoftware.com/
>
> Phone: +61 3 6231 3467
> Fax: +61 3 6231 3476
> Mobile: +61 4 0704 6857
>
> 47 Molle Street
> Hobart TAS 7000
> Australia
>
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig